java program on if else (else if)
Answers
Answered by
1
Answer:
please thanks for the answer
please mark as brainliest answer
Explanation:
Program to check POSITIVE, NEGATIVE or ZERO:
public class PositiveNegativeExample {
public static void main(String[] args) {
int number=-13;
if(number>0){
System. out. println("POSITIVE");
}else if(number<0){
System. out. println("NEGATIVE");
}else{
Similar questions