If input is contained in a std::string you can find the length as stated by Ravi.
If it’s a C string you find the length with
int len = strlen(INPUT);
In C/C++ upper case is normally used for constants so it’s better to name the string input, not INPUT.
0
solved How to find the lenght of the word in C++? [duplicate]