Source Code :
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
int nilai[10];
nilai[0]=1;
nilai[1]=2;
nilai[2]=3;
nilai[3]=4;
nilai[4]=5;
nilai[5]=6;
nilai[6]=7;
nilai[7]=8;
nilai[8]=9;
nilai[9]=10;
cout<<"Array 1 dimensi \n";
cout<<"isi array = \n";
for (int i=0;i<10;i++)
{
cout<<"\n"<<" Nilai "<<i<<" = "<<nilai[i]<<endl;
}
system("PAUSE");
return EXIT_SUCCESS;
}
Outputnya :
0 comments:
:)) :)] ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} ~x( :-t b-( :-L x( =))
Post a Comment