djfz-2020-s444379/TaskX02/run.cpp
2020-10-10 21:20:34 +02:00

13 lines
242 B
C++

#include <string>
#include <iostream>
int main(int argc, char* arv[])
{
unsigned int line_counter = 0;
std::string line;
while (std::getline(std::cin, line))
++line_counter;
std::cout << line_counter << std::endl;
}