Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
176 B
1
Indexable
Never
#include <iostream>

using namespace std;
int main()
{
    setlocale(LC_ALL, "Russian");
    int a,c=-1;
	do {
		cin >> a;
		c++;
	} while (a != 0);

	cout << c;
}