What if i use string instead of int as input?


#1

what if i write strings as input? interpreter gives me an error. how can i change it?
`


#2

Input to what? From what?
If you mean user-input from the console, then the only thing you can input is strings.

If you are trying to convert non-numerical text to a number, well, that doesn't make sense and should indeed result in error messages saying it can't be done no matter how badly you want it.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.