August 26, 2011

Example 2

Task:
Make coding that print an even number of 1 to 100.

Code: 
for n <-- 1 to 100
{
  if (n mod 2) = 0 then print n
}

No comments:

Post a Comment