bombhorridsuperman bombhorridsuperman
  • 01-10-2020
  • Computers and Technology
contestada

PLZ HELP ME ITS URGENT PlZ PLZ PLZ
Write a program to check whether the given number is positive or negative(c++)

Respuesta :

dancekrazeayushoffic
dancekrazeayushoffic dancekrazeayushoffic
  • 01-10-2020

Answer:

#include <stdio.h>

void main()

{

int num;

printf("Input a number :");

scanf("%d", &num);

if (num >= 0)

printf("%d is a positive number \n", num);

else

printf("%d is a negative number \n", num);

}

Explanation:

good luck.

hope it helped you.

pls mark brainleist

Answer Link

Otras preguntas

(5y^4-3y^3+2y^2-6y+5)+(-3y^+6y^3-4y^2-4y-8) can someone simplify that
How can i simplify the square root of 49x^8?
Henry is four times older than James. Next year, Henry will be three times older than James will be. How old are Henry and James now? a. James is 3 years old;
provide 3 details on how civilizations develop
Which equation has both 4 and -4 as possible values of y? a. y3 = 64 b. y2 = 8 c. y3 = 8 d. y2 = 16
How the combination of electrons, protons ans neutrons results in the neutral charge of an atom?
Evaluate the expression when r = 8.2 and s = –3.7. r – 2s a. –22.94 b. 0.8 c. 4.5 d. 15.6
Why has the physical description of the hero changed throughout the years? A. To prove that authors can create original characters B. To allow for the advanceme
Diastole is: the technical name for a heart attack a form of hypertension when the ventricles relax and fill with blood the contraction of the ventricles
Which is a compound? water iodine air calcium