Computer Science, asked by felix27, 4 months ago

write a program using if-else statement in Java​

Answers

Answered by nityagarg49
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