Posted by webmaster Guido on March 16, 2003
In Reply to: I NEED SOMTHIN MORE SIMPLER posted by Mike on March
15, 2003 Just have a look at the answer I gave you on March 13 :-) it's only a couple of lines below in the
Forum... program Convert; {$APPTYPE CONSOLE} uses SysUtils; const MilesToMetres = 1606.344; var Mph, // miles per hour Mps: real; // metres per second begin Write('Key in speed (mph): ') ; ReadLn(Mph); Mps := Mph * MilesToMetres / 3600; WriteLn('The speed in mps is ', Mps : 4 : 1); ReadLn; end.
|
Compiling Console Applications Learn Pascal with simple Delphi Console Applications |