Memberikan Nilai Pada Array Dimensi 1
Posted by Budi Arieyanto | Posted in Borlant C++ | Posted on 03.10
#include <iostream.h>
#include <conio.h>
main()
{
int n[5];
int i;
for(i=0; i<5; i++)
{
cout<<"n["<<i<<"]:";
cin>>n[i];
}
cout<<endl;
for(i=0; i<5; i++)
{
cout<<"n["<<i<<"]:"<<n[i]<<endl;
}
getch();
}


Comments (0)
Posting Komentar