All pastes #934308 Raw Edit

code

public text v1 · immutable
·published 2008-03-08 19:24 UTC
rendered paste body
program Project2;
var
count:integer;
num:integer;
total:integer;
ptotal:integer;
ntotal:integer;
begin
for count := 0 to 9 do
readln(num);
IF ((num > 0) AND (num <= 100)) THEN
total := total + num
ptotal := ptotal + num
end if
IF ((num => -100) AND (num < 0)) THEN
total := total + num
ntotal := ntotal + num
end if
end for
end.