Computer Science, asked by bestinbenny333, 7 hours ago

1

1 4

1 4 9

1 4 9 16

1 4 9 16 25

Write a C++ program to generate the above output.​

Answers

Answered by pushkarsingh8648
0

Answer:

#include<iostream> 

using namespace std; 

int main() 

for(int i=1;i<6;i++) 

cout<<i*i<<" "; 

return 0; 

Similar questions