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

I need someone to answer this
Which themes of Charles Dickens's Oliver Twist does this excerpt from the novel touch on?
What was the land in Panama like
can the height of a cylinder be a fraction​
Put ideas for a law plz ASAP (it’s for an Essay)
ask me any questions about DNA,RNA​
Why might an author choose not to follow Freytag's pyramid? What are some of the benefits and drawbacks?
Create a timeline: WHAT WOULD SOME EXAMPLES OF EACH PART BE?? Include at least the four major scientists covered in this unit: Oersted, Ampère, Faraday, and Tes
which government department is responsible for collecting taxes in south Africa​
I need this thank you please help