Category : Pascal Source Code
Archive   : PASTUT.ZIP
Filename : INTVAR.PAS

 
Output of file : INTVAR.PAS contained in archive : PASTUT.ZIP
(* Chapter 3 - Program 1 *)
program Integer_Variable_Demo;

var Count : integer;
X,Y : integer;

begin
X := 12;
Y := 13;
Count := X + Y;
Writeln('The value of X is',X:4);
Writeln('The value of Y is',Y:5);
Writeln('And Count is now ',Count:6);
end.




{ Result of execution

The value of X is 12
The value of Y is 13
And Count is now 25

}


  3 Responses to “Category : Pascal Source Code
Archive   : PASTUT.ZIP
Filename : INTVAR.PAS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/