Sunday, 26 May 2013

Arrays Example

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

No comments:

Post a Comment