Write a program to identify the given number is positive or not
Using if-else
Answers
Answered by
4
Input a number from user in some variable say num . Check if(num < 0) , then number is negative. Check if(num > 0) , then number is positive. Check if(num == 0) , then number is zero.
Similar questions