Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
260 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main() 
{
    int mass[5];
    for (int i = 0; i < 5; i++) 
    {
        mass[i] = (i + 1) * (i + 1);
    }
    for (int i = 0; i < 5; i++) 
    {
        cout << mass[i] << " ";
    }
    return 0;
}
Leave a Comment