Unable to write a condition using code

I am solving a problem where I've to give an if-else condition.

I will ask user to input a number. And the condition is the number size will not be more than 100 digits.

Now how can I write the condition in C++?
The question you need to ask yourself is how are you going to store a number with 100 digits. A long int will not come close.
Please read the tutorial on this site, this question could save everyone else time with a little bit of research.

Store input as a string, check if the string length is below or above 100 digits.
Topic archived. No new replies allowed.