Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class PrintNumberSequence
- {
- static void Main()
- {
- for (int i=1; i<11; i++)
- {
- if (i > 1) Console.Write(", ");
- Console.Write("{0}", (i%2>0)?i+1:-i-1);
- }
- Console.WriteLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment