In this program, we use the if-else statement to check whether the number entered by the user is positive, negative, or zero. If the number is greater than 0, we print "is positive". If it's less than 0, we print "is negative". If it's equal to 0, we print "is zero".
#JavaProgramming
#ConditionalStatements
#IfElseStatement
#ProgrammingTutorial
#LearnJava
#JavaBasics
#JavaSyntax
#JavaIfElse
#IfElseJava
#JavaCoding
コメント