163k views
2 votes
"write code that prints: countnum ... 2 1 your code should contain a for loop. print a newline after each number. ex: countnum

1 Answer

7 votes
public procedure countdown (countnum: integer)
begin
while countnum > -1 do begin
System.out.printline(countnum);
countnum := countnum - 1;
end;

end



User Awied
by
5.5k points