Hi, I'm learning Pascal. I'm trying to do a program to convert meters to feet and inches.
1 meter = 39,37 inches = 39,37/12 feets. Knowing that I did:
Program Number1;
const a=39.37;
var b,c,d:real;
begin
b:=10; (* meters *)
c:=(b*a) div 12;
d:=(((b*a)/12)-c)*12;
write(b:3:3,' meters = ',c:3:3,' feets ',d:3:3,' inches');
end.
The output I want to get is: 10.000 meters = 32 feets 9.696 inches
Error: Incompatible types: got "Extended" expected "LongInt"
Error: Incompatible types: got "Extended" expected "LongInt"
There were 2 erros compiling module, stopping
Fatal: Compulation aborted
Thanks for your time.