| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | Program InputOutput; uses crt; var x,y,sum : integer; begin Clrscr; {Entering values into variables x and y} write(‘Input First Number : ‘); Readln(x); write(‘Input Second Number : ‘); Readln(y); writeln; {Perform arithmetic operations with respect to x and y} writeln(‘x + y = ‘, x + y); writeln(‘x - y = ‘, x - y); writeln(‘x * y = ‘, x * y); writeln(‘x / y = ‘, x / y) : 0 : 3); writeln(‘x div y = ‘, x div y); writeln(‘x mod y = ‘, x mod y); Readln ; End. |
If the above program code at compile and run the results will be displayed like this :
Output Program :
| Input First Number : 10 Input Second Number : 3 x + y = 13 x + y = 7 x + y = 30 x + y = 3.333 x + y = 3 x + y = 1 |










