#include<iostream>
using namespace std;
main(){
int a[10], b=0, c;
cout<<"Inpu perulangan: ";cin>>c;
for(int i=0; i<c; i++){
cout<<"Masukan nilai: "; cin>>a[i];
}
cout<<endl;
for(int i=0; i<c; i++){
cout<<"Nilai: "<<a[i]<<endl;
}
}
More From Author
Algoritma dan Pemrograman