Created
April 9, 2014 02:14
-
-
Save KaduNovoK/10219615 to your computer and use it in GitHub Desktop.
Program to sum two integer values
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
Program to sum two values | |
Just to remember the basic of pascal | |
(c) Kadu NovoK <[email protected]> | |
} | |
program sum_program; // Header | |
{ Statements } | |
var | |
a: integer; | |
b: integer; | |
sum: integer; | |
{ program body } | |
begin | |
write('Input the value A: '); | |
readln(a); | |
write('Input the value B: '); | |
readln(b); | |
sum := a + b; | |
writeln(); | |
write('The sum is: '); | |
writeln(sum); | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment