How to judge whether it is positive or negative in C language
This article mainly introduces the relevant knowledge of how to judge whether the C language is positive or negative, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this C language article on how to judge whether it is a positive number or a negative number. Let's take a look.
The user enters a number to determine whether the number is positive, negative or zero.
Example
# include
Int main () {
Double number; printf ("enter a number:")
Scanf ("% lf", & number)
If (number