#include <iostream>

using namespace std;

int main() {
    int numero;
    int positivos = 0, negativos = 0, ceros = 0;
    
    cout << "\nIngrese 10 numeros enteros:" << endl;
    for (int i = 1; i <= 10; i++) {
        cout << "\nNumero " << i << ": ";
        cin >> numero;
        
        if (numero > 0) {
            positivos++;
        } else if (numero < 0) {
            negativos++;
        } else {
            ceros++;
        }
    }
    
    cout << "\nPositivos: " << positivos << endl;
    cout << "Negativos: " << negativos << endl;
    cout << "Ceros: " << ceros << endl;
    
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: