Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MyFirstProgram
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[] array = new int[] { 1, 3, 5 };
- PrintArray(array);
- }
- static void PrintArray(int[] array)
- {
- for(int i = 0; i < array.Length; i++ )
- {
- Console.WriteLine(array[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement