1(
int dobutok = 1;
for (int i = -6; i<= 5; i++) {
dobutok*= i;
}
cout << dobutok << end;
2(
int n, m,average = 0, z = 0; cout << "Enter length number"; cin >> n;
float sum = 0;
for (int i = 1; i<= n; i++) {
cin >> m;
if (m % 10 != 0) {
z++; sum+= m; average = sum \ z;
cout << average << end;
Теперь тебе осталось это перенести в с++ builder
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
1(
int dobutok = 1;
for (int i = -6; i<= 5; i++) {
dobutok*= i;
}
cout << dobutok << end;
2(
int n, m,average = 0, z = 0; cout << "Enter length number"; cin >> n;
float sum = 0;
for (int i = 1; i<= n; i++) {
cin >> m;
if (m % 10 != 0) {
z++; sum+= m; average = sum \ z;
}
}
cout << average << end;
Теперь тебе осталось это перенести в с++ builder