Get the App
SLTechnology News&Howtos  ›  Development  › 

How to judge whether it is positive or negative in C language

Shulou Source: shulou.com Published: 2022-06-01 01:50:58 10月03日 Update

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

Tags: Positive input negative or language number knowledge content article value example easy to operate article easy to understand more user look result industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker OPPO Reno Shulou Information Apple MariaDB