how to input a number with 100000 digits in c++?
Well, what can you have that can be 100000 long?
Take the input as a
std::string
You cannot read a number with 100000 digits in a basic data type like int, long etc in C++. You have to read it in a string variable.