+ 1
[SOLVED] Instead of accepting my input, the compiler is simply changing my input to blank. Some weirdness is going on.
Nested switch case to convert any number system to the other. Original code: https://code.sololearn.com/cWyMTwPP4sy1/?ref=app Go to case 2 and notice my String input statement (line 75).It is not letting me enter the binary number.Try and print the input itself and a line break will be printed.
16 Respuestas
+ 4
I will not go through the whole code, can you please tell me what lines I need to input for the code to run? It'll be the most helpful that way so I can try to debug it.
+ 4
~ swim ~
I have written another code in my computer with the same style of input for the same task with same statement. Why would that not show a wrong output then?
+ 4
Yes ,fine, What changes should I make in my 1st program to implement the input properly?
+ 3
~ swim ~
Thank you so much!
I am an idiot.
+ 2
Coder's Crux
2
21
100
should return 4 but 0 is what you get,you get zero for anything you enter.
case 1 and 4 are super fine but 2 and 3 is acting weirdly.
+ 2
I couldn't find any simple mistake error, are you using sl or an ide to make this?
+ 2
What is sl or vs? I don't even know.
I tried this on fully updated BlueJ and it still doesn't work.
+ 2
As long as you use some ide it's fine. Try to verify your code with other people's algorithms on cases 2 and 3, because I can't suggest anything else to do..
+ 2
I don't think this has anything to do with IDE, thanks for your cooperation anyways.
0
Erialdo Meta 🇦🇱 I am not doing that. It would take several hours to alter the code.It is now neither important to me nor do I have any more issues it.
0
Erialdo Meta 🇦🇱 Thumbs up for predicting my future.