*/
Stuck? Need help? Ask questions on our forums.
*/

View \DUMBCONV.PAS

Getting Started with the Pascal tutorial, source

Submitted By: WEBMASTER
Rating: (Not rated) (Rate It)


(* Chapter 4 - Program 5 *)
program Temperature_Conversion;

var A1,A2,A3 : integer;

begin
   Writeln('Centigrade to farenheight temperature table');
   Writeln;
   for A1 := -2 to 12 do begin
      A2 := 10*A1;
      A3 := 32 + A2*9 div 5;
      Write('  C =',A2:5);
      Write('    F =',A3:5);
      if A2 = 0 then
         Write('  Freezing point of water');
      if A2 = 100 then
         Write('  Boiling point of water');
      Writeln;
   end;
end.

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.