How to proceed with this problem? As strings contain character so array can’t be made who stores index of it.
Or I have to apply an if-else condition to guess which no is it then convert it?
Convert string to int
hello @ashwani225
please refer this -> https://www.geeksforgeeks.org/convert-a-string-to-an-integer-using-recursion/
the idea is we can write a numer say abcd as
abcd= a * 10^3 + b * 10^2 + c * 10 + d …
it is correct . . . .