Java Program to Check Whether a Number is Positive or Negative with Explanation

preview_player
Показать описание
#javatutorialforbeginners #javaprogramming
Java Program to Check Whether a Number is Positive or Negative with Explanation

All Java Programs | Java Coding Interview Questions:

In this video, we will write a java program, to check whether it is positive or negative and displays the result.
→ If a number is greater than zero then it is a positive number
→ If a number is less than zero then it is a negative number
→ If a number is equal to zero then it is neither negative nor positive.

In this program, we have specified the value of number during declaration and the program checks whether the specified number is positive or negative. To understand this program you should have the basic knowledge of the if-else-if statement in Core Java Programming.

Same query:

Related:
java programs for interview,
java program for beginners,
java programming tutorial,
program in java
Рекомендации по теме
Комментарии
Автор

Tq sir your explanation is understandable

meenaadapa
Автор

Arey bhai itni angreji angrej chle le gye lekin apne bacche chor gye

techieshivansh