#include <iostream>
#include <cmath>
using namespace std;
int main() {
double s=1;
for (int i = 2; i <= 10; i++) {
s *= (i + pow(i, -1));
}
cout << s;
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
#include <cmath>
using namespace std;
int main() {
double s=1;
for (int i = 2; i <= 10; i++) {
s *= (i + pow(i, -1));
}
cout << s;
return 0;
}