if-statements | SoloLearn: Learn to code for FREE!

-8

if-statements

what happens if the if statement didint excist?

3/7/2017 12:18:48 AM

diogo

9 Answers

New Answer

+14

If the if statement does not exist, it does not run.

+2

No one understands the question, so either this is a joke, or you're saying it wrong. I ran that string assumed to be binary through a translator, and got uj®ÊURõT. No help there.

+1

there would be no second option/choice in absence of "IF" statement. Then only one command will have to be executed though it is positive, negative or null.

0

Error ♥️

0

It will show u a error

0

we can use some some other conditions like while, for, switch. switch would be the best option in case if don't have "if". Here is an example: int x=10; if (x==10){ System.out.println("yes"); } else{ System.out.println("no"); } switch(x){ case 10: System.out.println("yes"); break; default: System.out.println("no"); } I hope this is correct !!!

0

Привет

-1

i type bad. sorry

-1

I have designed a social media application called BestieApp. Download it for free https://apkpure.com/p/bestieapp.aplieut