Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _05.NumbersInRange
- {
- class NumbersInRange
- {
- static void Main()
- {
- for (int a = 2; a <= 100; a++)
- {
- if (a % 2 == 0)
- {
- Console.WriteLine(a);
- }
- else
- {
- Console.WriteLine(a*-1);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement