Advertisement
dimov

Untitled

Dec 30th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. using System;
  2.  
  3. class PrintNumbersOfSequence
  4. {
  5.     static void Main()
  6.     {
  7.         Console.WriteLine("The first 10 numbers of the sequence are:");
  8.         for (int i = 2; i < 12; i = i + 2)
  9.         {
  10.             Console.WriteLine(" " + i);
  11.             Console.WriteLine(" " + -(i + 1));
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement