kisame1313

Untitled

Jul 15th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ForLesson15
  4. {
  5.     class Program
  6.     {
  7.         static void Main ()
  8.         {
  9.             int [] args = new int [] {1,2,3,4,5,6};
  10.             WriteNumbers (args);
  11.         }
  12.         static void WriteNumbers (params int [] i)
  13.         {
  14.             foreach ( int j in i )
  15.             {
  16.                 Console.WriteLine ( j );
  17.             }
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment