Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void PrintEven(int x)
- {
- int c = 0;
- while (c <= x)
- {
- if (c % 2 == 0)
- Console.WriteLine(c);
- c++;
- }
- Console.WriteLine("Done.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement