- 7
if-statements
what happens if the if statement didint excist?
10 Respostas
+ 16
If the if statement does not exist, it does not run.
+ 6
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.
+ 1
It will show u a error
+ 1
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
Привет
0
Run
- 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
- 1
Error ♥️