Math, asked by bestinbenny333, 2 months 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 vikasjohn496
0

Answer:

Step-by-step explanation:

#include<iostream>  

using namespace std;  

int main()  

{  

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

       cout<<i*i<<" ";  

   return 0;  

}

Similar questions