Write a program to check whether given number is positive negative or zero?
Answers
Answered by
14
Answer:
The program output is also shown below.
1. int number;
2. printf("Enter a number \n")
3. scanf("%d", &number);
4. if (number >= 0)
5. printf("%d is a positive number \n", number);
6. printf("%d is a negative number \n", number)
Explanation:
hope my answer help you
please marked me as brainlist and also follow me
Similar questions
Computer Science,
4 months ago
Math,
4 months ago
Science,
4 months ago
Social Sciences,
8 months ago
Math,
8 months ago