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;

}

Share this:

Enter your email address to get update from Kompi Ajaib.

Tidak ada komentar