write a program using if-else statement in Java
Answers
Answered by
4
public class IfElseExample {
public static void main(String args[]){
int num=120;
if( num < 50 ){
System.out.println("num is less than 50");
}
else {
System.out.println("num is greater than or equal 50");
}
}
}
I hope it helps you...
please follow me and mark me as a brainlist..
please
Similar questions
India Languages,
3 months ago
Math,
3 months ago
Math,
6 months ago
Business Studies,
6 months ago
Math,
11 months ago
English,
11 months ago