* IT IS IT *
Monday, April 16, 2012
Pengenalan Array
#include<iostream.h>
void main ()
{
int a[12]={1,3,5,4,7,2,99,16,45,67,89,45};
int total;
total=0;
for (int i=0;i<12;i++)
{
total +=a[i];
}
cout<<"Total seluruh elemen array adalah :"<<total;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment