#include"stdafx.h"
#include<iostream>
using namespace std;
int main()
{
int n, variable, counter = 0, mult = 1;
cout << "How many numbers are you going to enter?\n";
cin >> n;
for (int i = 0; i < n; i++) {
cin >> variable;
if (variable > 0) {
mult *= variable;
counter += 1;
}
}
cout << "\nTotal: " << n << " numbers\n" << "Amount of them: " << counter << " greater 0\nTheir composition: " << mult<<"\n";
system("pause");
return 0;
}
Если Вы уже зарегистрированы на Портале - войдите в систему, если Вы еще не регистрировались - пройдите простую процедуру регистрации.