Advertisement
Stanislav2812

Untitled

Aug 21st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. using System;
  2. using System.Threading;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8.  
  9.  
  10. namespace MyFirstProgram
  11. {
  12.     class Program
  13.     {
  14.  
  15.         static void Main(string[] args)
  16.         {
  17.             int[] array = new int[] { 1, 3, 5 };
  18.             PrintArray(array);
  19.         }
  20.            
  21.            
  22.         static void PrintArray(int[] array)
  23.         {
  24.             for(int i = 0; i < array.Length; i++ )
  25.             {
  26.                 Console.WriteLine(array[i]);
  27.                
  28.             }
  29.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement