Syntak Inputan
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Tugas_Array
{
class Program
{
static void Main(string[] args)
{
int jumlah;
string sa;
Console.Write("Masukan Jumlah Nama :");
jumlah = int.Parse(Console.ReadLine());
int[] angka = new int[jumlah];
Console.WriteLine("");
for (int a = 1; a <= angka.Length; a++)
{
Console.Write("Masukkan Nama Ke- " + a + " : ");
sa = Console.ReadLine();
}
Console.ReadKey();
}
}
}
Inputan
Hasil Output :
Outp
Tidak ada komentar:
Posting Komentar