#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;
}
#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;
}
Tidak ada komentar