Simple Array Program In Cpp Language
Calculating 10 integers in array function(Cpp programming Language)?
#include<conio.h>
using namespace std;
int main ( )
{
int i , a[10];
cout << "Enter 10 integers: ";
for(i = 0; i < 10; i ++)
cin >> a [ i ];
cout << endl;
cout << "The integers are ";
for(i = 0; i < 10; i ++)
cout << a [ i ] << " ";
cout << endl;
return 0;
}
Comments
Post a Comment