To work with IF-THEN-ELSE example
Example:
program Welcome;
uses
Wincrt;
var
a:integer;
begin
Writeln('Enter the two number: ');
Read(a);
if a > 10 Then
Writeln(' This integer is more then 10')
Else
Writeln(' This integer is small then 10');
end.
Output:
No comments:
Post a Comment