Home » , , » contoh script c++ array

contoh script c++ array

#include<cstdlib>
#include<iostream>
using namespace std;
int main()
{
int billy[]={16,2,77,40,12071};
int n,result=0;
for (n=0;n<5;n++)
{
result+=billy[n];
}
cout<<result;
cout<<endl;
system("PAUSE");
return 0;
}

0 komentar:

Posting Komentar