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

Genital Surgery ("Bottom" surgery)
complete the sentence÷ a) the three organs of the government are.................,................ and................. b) an....................day administrat
Trucker hiked 15 miles in 3 hours. How many miles does Tucker bike in 1 hour?
Please answer.. I really need help
Based on the cartoon, which conclusion can be drawn about colonial concerns toward English policies? A Colonists support an increase in taxation by the British
In case of severe acute respiratory syndromes like COVID, which of the following measures are taken as a law to arrest the spread of the disease from one person
please answerrrrrrrrrrrr
what percent of 105 is 63
You are visiting a job site and observe a worker who is installing siding on a building. The worker is standing on the top step of a ladder that is not long eno
Solve for x: -38 + 6x = -12x + 52 a. x = 6 b. x = -6 c. x = -5 d. x = 5