Guest User

PrintSequence

a guest
Mar 9th, 2014
185
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3.     class PrintSequence
  4.     {
  5.         static void Main(string[] args)
  6.         {
  7.             int multiplier = 1;
  8.             for (int i = 2; i < 12; i++)
  9.             {
  10.                 Console.WriteLine(i * multiplier);
  11.                 multiplier = multiplier * -1;
  12.             }
  13.         }
  14.     }
RAW Paste Data