Array 1 dimensi
#include<iostream.h> #include<conio.h> void main() { int nilai [5]={5,10,25,45,65}; for (int i=0; i<3;i++) { cout <<"nilai ke"<<i<<"="<<nilai [i] <<endl; } getch (); } out put:
Art & Documentation Videografi || Instagram & Facebook : @muhamirulmnn