18 lines
240 B
C++
18 lines
240 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
int n;
|
|
int count = 0;
|
|
while (cin >> n)
|
|
{
|
|
if (n == 0)
|
|
break;
|
|
count++;
|
|
}
|
|
cout << count << endl;
|
|
return 0;
|
|
}
|