- 3
Teach the if statements
if
4 odpowiedzi
+ 9
if (condition ){
statements;
}
else{
statements;
}
+ 8
//checking the max no out of 2
int a=2,b=4;
if (a>b){
cout<<"max is :"<<a;
}
else{
cout<<"max is:"<<b;
}
output:
max is: 4
+ 1
its about conditions
String condition = "true";
if(condition.equalsIgnoreCase("true");{System.out.println("Condition is true");
}
else
{System.out.println("Condition is false");
- 1
please elaborate ,