#include <iostream>
using namespace std;
int main() {
int i;
double x, p = 1;
for(i=1; i<=7; i++) {
cout << "Enter " << i << " число: ";
cin >> x;
if(x < 6) {
p *= x;
}
cout << "Dobutok elements = "<< p;
return 0;
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main() {
int i;
double x, p = 1;
for(i=1; i<=7; i++) {
cout << "Enter " << i << " число: ";
cin >> x;
if(x < 6) {
p *= x;
}
}
cout << "Dobutok elements = "<< p;
return 0;
}