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
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
History,
1 month ago
Social Sciences,
1 month ago
Math,
1 month ago
Computer Science,
3 months ago
Math,
3 months ago
India Languages,
11 months ago
Science,
11 months ago
Math,
11 months ago