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

plz help asap thank youuu
what ROI will you need to double your money in 12 years​
What is the LCM if 4 and 6
Bill is creating a flowchart to simulate a simple game of picking between two cards. In which box will he place the sentence "What color is the card?"
tommy's toy car sits 5 feet from the gound. it goes down the ramp at .25 feet per second. how far does it go in 1.5 seconds?​
promised Miguel that his DVDs would be returned to the rental store by midnight what is the subject in this sentence
if i have a substance with a ph of 3 what is it?
What are the major events of the french revolution
(1) What did the 18th admedment do (2) What did the 19th admedment do Will give brainliest and 5 star
Why is it important to learn about the holocaust