To work with FOT…TO by example
Example:
program Welcome;
uses
Wincrt;
var
number:integer;
sqnumber:integer;
begin
for number:=4 to 9 do
sqnumber:=number*number;
Writeln(number,' ',sqnumber)
end
end.
Output:
Post a Comment
No comments:
Post a Comment