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

Which form of reproduction results in the highest degree of genetic variation among offspring? outcrossing asexual reproduction bacterial fission selfing (self-
Which one of the following measures how well your health gets oxygen-rich blood to all your muscle while you’re exercising
Explain how you can find a fraction that is equivalent to 1/4​
I need help ASAP! Please! 20 points!
I added Two Snip-its Of My Questions Will Give 15 Points
What was the Vietcong’s strategy in fighting American forces?
Discuss four ways that can keep our nervous system healthy.
A flashlight is projecting onto a wall, as shown below
Is it possible to change the strength of an acid? Explain how you would do this.
can someone give me a 8 paragraph essay about the spotted hyena?​