Untitled
Anonymous
c_cpp
11/04/2023 5:14 PM
288 B
18
Indexable
#include <iostream>
int main() {
int input = 0;
int count = 0;
for (int i = 0; i < 25; i++) {
std::cin >> input;
switch (input) {
case 1:
count++;
break;
}
}
std::cout << count;
}Editor is loading...