Professional Documents
Culture Documents
#Include Using Namespace Const Int Int Int For Int If
#Include Using Namespace Const Int Int Int For Int If
*/
#include <iostream>
using namespace std;
const int N = 50;
int main()
{
int alpha[N];
for (int i = 0; i < N; i++)
{
if (i < 25)
{
alpha[i] = i*i;
}
else
alpha[i] = 3 * i;
}
cout << "The contents of the array alpha are: \n\n";
for (int j = 0; j < N; j++)
{
cout << alpha[j] << " ";
if ((j + 1) % 10 == 0)
cout << endl;
}
cout << endl << endl;
system("pause");
return 0;
}