* IT IS IT *
Monday, April 16, 2012
PENGANTAR ARRAY
#include <iostream.h>
#include <conio.h>
void main ()
{
int a[5];
for (int i=0;i<5;i++)
{
cout<<"Masukkan array ke "<<i<<" =";
cin>>a[i];
}
for (int b=0;b<i;b++)
{
cout<<"a["<<b<<"] = "<<a[b]<<endl;
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment