81al

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; void garis(){ puts("==========================================="); } void judul(){ garis();puts("\tContoh Program Array");garis(); } void author(){ puts("Nama\t: Zacky Ahmad S"); puts("Email\t:zackyahmadsyahputra4@gmail.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; }
Editor Settings
Theme
Key bindings
Full width
Lines