Untitled

Anonymous
plain_text
02/02/2026 1:52 PM
468 B
10
Indexable
#include <iostream>
using namespace std;
int main(){
    int v[5];
    int i;
    int counter = 0;
    for(i=0;i<5;i++){
        cin >> v[i];
    }
    for(i=0;i<5;i++){
        for(i=0;i<5;i++){
            if(i = v[i]){
                counter++;
            }
        }
    cout << counter;
    counter = 0;
    }
    return 0;
}
Editor is loading...
Leave a Comment