type name [elements];then try this example below :
#include <iostream.h>Have a nice try, dude!
#include <conio.h>
/*fungsi utama*/
void main(){
// sayHi();
int y[] = {1,2,7,4,5};
int n,r = 0;
for (n=0;n<5;n++){
r+=y[n];
}
cout<< " " << r;
getch();
}
Sign up here with your email
ConversionConversion EmoticonEmoticon