#include <iostream>
using namespace std;
//Teknik Informatika (Semester 3)
//Nama : Viska Tia Faiza
//NIM : 3420230008
void garis() {
puts("======================================");
}
void judul() {
garis(); puts("\tContoh Program Array"); garis();
}
void author() {
puts("Nama\t: Viska Tia Faiza");
puts("Email\t: viskatiafaiza31@gamil.com");
}
int main() {
int i,jml;
judul();
printf("Masukan Jumlah Data\t: ");cin>>jml; cout<<endl;
int data[5];
for(i=1;i<=jml;i++) {
printf("Masukan Data Ke-%d\t: ",i); scanf("%d",&data[i]);
cout<<"\n";
}
garis();
puts("Data Yang Anda Masukan");
garis();
for(i=1;i<=jml;i++) {
printf("Data Ke-%d adalah\t: %d\n",i,data[i]);
}
garis();
author();
return 0;
}