" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
#include <conio.h>
void main()
{
clrscr ();
int A[5];
int i;
for(i=0;i<5;i++)
{
cout<<"Masukkan Data "<<i<<"="; cin>>A[i];
}
for(i=0;i<5;i++)
{
cout<<endl<<"array ke-"<<i<<" -> "<<A[i];
} getch () ;
}
Sumber : http://darkzone7.blogspot.com/2013/04/array-pada-c.html#ixzz3LmTWACLf