21
1
using System;
2
3
4
namespace IDCSharp
5
{
6
public class Program
7
{
8
public static void Main(string[] args)
9
{
10
int[ ] a = new int[10];
11
for (int k = 0; k < 10; k++) {
12
Console.WriteLine("Masukan Array ke - "+k);
13
a[k] = Convert.ToInt32(Console.ReadLine());
14
}
15
foreach (int k in a) {
16
Console.WriteLine("Berikut adalah hasil yang sudah di input");
17
Console.WriteLine(k);
18
}
19
}
20
}
21
}
Cached Result