Files
python/TangDou/XiTi/1040.cpp

18 lines
240 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#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;
}