using System;
namespace tugas_rekening
{
class MainClass
{
public static void Main (string[] args)
{
int jum;
Random Nas = new Random();
Console.Write("Banyak Nasabah: ");
jum=int.Parse(Console.ReadLine());
int i,j;
for (i=0;i<jum;i++)
{
Console.Write("No.Rekening Nasabah {0}: ",i+1);
for (j=0;j<1;j++)
{
Console.Write("{0}-{0}-{0}-{0}", Nas.Next(1000, 9999));
}
Console.WriteLine();
}
}
}
}
Menampilkan Angka Random
Labels:
Pemerograman Berorientasi Objek
0 comments:
Post a Comment