Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
274 B
0
Indexable
Never
#include <iostream>

int main()
{
    const int n = 10;
    int a;
    int jumaisimba[n]{0};
    
    for (int i = 0; i < n; i++) {
        std::cin >> jumaisimba[i];
        if (jumaisimba[i] == 0) {
            a = i;
        }
    }
    std::cout << a;

}
Leave a Comment