logo blog

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;
}

Artikel Terbaru :

Copyright © 2016. puzzpa - All Rights Reserved | Template Created by Kompi Ajaib Proudly powered by Blogger