Arrays - 01_ArrayOf20int
ntodorova Jan 12th, 2013 153 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- using System;
- * 1. Write a program that allocates array of 20 integers and initializes each element by
- * its index multiplied by 5. Print the obtained array on the console.
- class ArrayOf20int
- static void Main()
- int arr = new int;
- for (int i = 0; i < arr.Length; i++)
- arr[i] = i * 5;
RAW Paste Data