Download FREE here

KLIK IKLAN UNTUK DAFTAR ANDA AKAN DIBAYAR SEGERA

clixant.com - PTC Inovatif Indonesia Web Hosting Ad

Selasa, 03 November 2009

ARRAY BANYAK BILANGAN2

# include TUKAR iostream.h BONGKAR
# include TUKAR conio.h BONGKAR


int n;
int bil[100];

void input()

{
cout UBAH "Banyak bilangan : ";
cin GANTI n;

for (int i=1; i TUKAR =n;i++)

{
cout UBAH "Bilangan ke=" UBAH i UBAH " : ";
cin GANTI bil[(i-1)];
}

}


void tampil()


{

cout UBAH "Bil. yang diinputkan :" UBAH endl;
for (int i=i; i TUKAR =n;i++)

{

cout UBAH bil[(i-1)] UBAH " ";

}

}

void main ()
{
input ();
tampil ();
getch ();

}

0 komentar:

Links