Подключи библиотеки iostream и Windows.h
int main() {
int nNumsCount = 0,
pNumsCount;
int number = 0;
while(std::cin >> number && number != 99){
if(number < 0)
++nNumsCount;
if(number > 0)
++pNumsCount;
}
std::cout << pNumsCount << '\n' << 2*nNumsCount << std::endl;
system("pause");
return 0;
Подключи библиотеки iostream и Windows.h
int main() {
int nNumsCount = 0,
pNumsCount;
int number = 0;
while(std::cin >> number && number != 99){
if(number < 0)
++nNumsCount;
if(number > 0)
++pNumsCount;
}
std::cout << pNumsCount << '\n' << 2*nNumsCount << std::endl;
system("pause");
return 0;
}