+ 1
JUST A NEWBIE LOOKING FOR HELP
Hey, I'm new with all this, and i would really like to add some well-experienced people that are willing to help me out by answering questions that i may give you, thanks ❤
11 Respuestas
+ 1
Go on.
+ 1
nope. :)
+ 1
https://code.sololearn.com/co3LZ32cbNL1/?ref=app check this code. Try to get the idea of switch - control flow. In that code, there is a mistake. Comment the mistake if you get it. ^_^
0
aight
0
is there no way to message people privately?
0
ugh, that sucks, well anyways if you could please go into my profile and youll find a thing called "help me pls", im trying to understand how the switch function works in java, and i just can't seem to get it
0
If i run the code as is, it just says "time limit exceeded", and i don't understand why
0
uh, it doesn't teach anything i don't already know, I'm trying to do something else with the switch function, but i have no idea how
0
I think this code is the problem, I don't understand what it is supposed to do but I am not surprised it loops: https://code.sololearn.com/c46TlSqSfkZa/?ref=app
0
@Ima
break statement is missing here.
And,
Your while loop doesn't make sense.
Just focus on both Switch & While Loop individually.
0
Okay, i just fixed it, but it doesn't do exactly what i wanted it to do, let me explain what im trying to do.
I'm trying to make a code that starts with the input of x=0, and then i want it to cycle through each case which changes the x into 1,2, and then finally 3.
when it reaches three i want it to stop and say "this shit is hard"
so basically the output i'm looking for is as follows:
0
1
2
3
this shit is hard