?
7
Here is a little example...
program add(input, output);
var
a,b :integer;
sum :integer,
begin
writeln( A program to add two numbers); writeln; write(Enter the first number,please); readln(a);
writeln(enter the second number);
readln(b);
sum:=a+b;
writeln(the sum of,a,and,b,is,sum) end.
press a key, when ready
?
W
choose 1) comments.....
2) printing.....
3) reading.....
4) Assignment.....
9
5) selection.....
6) repetition.....
7) example.....
8) reference..... 9) exit.....
are you sure (y/n)
?
y
٣٢٠
ج٢ ص٣٢٠