Monday, December 10, 2007

How to work with IF-THEN-ELSE example

How to work with IF-THEN-ELSE example

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: