Solve this in C++ program
Use nested loop
Create Following series -use generic approach
n!
3! 4! 5.
1!,
22 '33' 44'55
ML
Who else did i will give full stars
Attachments:
Answers
Answered by
0
Answer:
#include <iostream>
using namespace std;
int main()
{
int n = 5;
float factorial = 1;
float square = 0;
for (int i = 1; i <= n; i++) {
factorial = factorial * i;
square = i * i;
cout << factorial / square << endl;
}
return 0;
}
Similar questions