Hi dear friends:
I am going to post some nice Pascal examples here , i hope it will be useful to you all. I hope you will also post here your good programes :
lets start :
1)
program operators;
uses crt;
begin
clrscr;
writeln(17 div 3);
readln;
writeln(7 mod 4);
readln;
end.
2)
program posneg;
uses crt;
var
no : integer;
begin
clrscr;
Write('Enger a number:');
readln(no);
if (no > 0) then
writeln('You enter Positive Number')
else
if (no < 0) then
writeln('You enter Negative number')
else
if (no = 0) then
writeln('You enter Zero');
readln;
end.
If you have any problem about the examples you can ask here,,, the next examples will come soon.