Monday, December 10, 2007

How to work with the Binary Arithmetic Operators

How to work with the Binary Arithmetic Operators

To work with the Binary Arithmetic Operators

Example:

program Welcome;

uses

Wincrt;

var

a:integer;

b:integer;

c:integer;

begin

Writeln('Ente the three number: ');

Read(a);

Read(b);

Read(c);

Writeln('Answer is : ',a+b+c);

Writeln('Answer is : ',a*b*c);

Writeln('Answer is : ',a+b-c);

end.

Output:


No comments: