How to write code in Pascal
|
Input data must be read from console and the result must be written to console as well.
Example. Create a program which calculates the sum of two integer numbers.
Sample input:
5 3
Sample output:
8
Sample code:
Example. Create a program which calculates the sum of two integer numbers.
Sample input:
5 3
Sample output:
8
Sample code:
var
a,b:integer;
begin
read(a,b);
writeln(a+b);
end.