
20-04-2006, 20:36
|
|
|
|
חבר מתאריך: 20.08.05
הודעות: 723
|
|
בבקשה.. (כתבתי ממש מהר יכול להיות שיש טעויות)
קוד:
program bla;
var
mone,a,b:integer;
begin
mone:=0;
a:=1;
b:=1;
while not(a=0) and not(b=0) do
begin
writeln('enter two numbers');
readln(a,b);
if (a>b) then
writeln(a,':גדול יותר');
else
if (a<b) then
writeln(b,':גדול יותר');
if (a mod 2=0) then
mone:=mone+1;
if (b mod 2=0) then
mone:=mone+1;
end;
writeln(mone,':מספר המספרים הזוגיים הוא');
end.
|