#include<iostream.h>
#include<conio.h>
void main()
{
int data [10]; //array dengan10
int elemen;
clrscr();
for (elemen=0;elemen<=9;elemen++) //entri 10 data
{
cout<<"Data Ke-"<<elemen<<" :";cin>>data[elemen];
}
for (elemen=0;elemen<=9;elemen++) //tampilkan data
{
cout<<"Data Ke-"<<elemen<<" :"<<data[elemen]<<"\n";
}
getch ();
}
0 comments:
Post a Comment