Advertisement
Devilchild656

16.Problem

Mar 9th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. using System;
  2.  
  3.  
  4. namespace _16.Long_Sequence
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             int a = 2;
  11.             int b = -(a + 1);
  12.  
  13.             for (int i = 0; i < 500; i++)
  14.             {
  15.                 Console.WriteLine(a);
  16.                 Console.WriteLine(b);
  17.  
  18.                 a = a + 2;
  19.                 b = b - 2;
  20.            
  21.  
  22.             }
  23.  
  24.            
  25.            
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement