// Aray Satu DimensiOuputnya sbb :
#include<iostream.h>
#include<conio.h>
main()
{
int a[5]={20,25,30,35,40};
int b[5]={20,40};
int c[5]={20,0,60};
int j;
// Untuk Menampilkan nilai dari element array
cout<<endl;
for(j=0;j<5;j++)
{
cout<<"A ["<<j<<"] = "<<a[j]<<" , B ["<<j<<"] = "<<b[j]<<" , C ["<<j<<"] = "<<c[j]<<endl;
}
getch();
}
Semoga Bermanfaat.
0 comments:
Post a Comment