end sub
sub example
print "Here is a little example..." print "program add(input,output);"
print "var"
print "ab :integer;"
print "sum :integer;"
print "begin"
print "writeln( A program to add two numbers);" print "writeln;"
print "write(Enter the first number,please);" print "readln(a);"
print "writeln(enter the second number);"
print "readln(b);"
print "sum:=a+b;"
print "writeln(the sum of,a,and,b,is,sum)"
print "end."
input "press a key, when ready",ch$
call menue
end sub
sub reference
print " A good book to read is.."
print
print "R Kemp, Pascal for Students, 1982"
print
input "press one key", a$
call menue
end sub
sub exit
input "are you sure (y/n)",ch$
if ch$= "y" or ch$= "Y" then
stop
PIA
ج٢ ص٣١٨