Advertisement
Everath

while loop

Oct 28th, 2014
202
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. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication1
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             int[] numbers = new int[] { 1, 23, 43, 4, 2435, 2456, 4 };
  13.             int i = 0;
  14.             while (i < numbers.Length)
  15.             {
  16.                 Console.WriteLine(numbers[i]);
  17.                 i++;
  18.             }
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement