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

What is the value of x? Enter your answer in the box
When in the Course of human events, it becomes necessary for one people to dissolve the political bands which have connected them with another, and to assume am
All the choices are 1, 2, or 3
How did the idea of Fortune affect people's lives in the 14th century?
what is the value of the expression below when x =10 4x+5÷8x+5
What, do you suppose, Herrick would say if you told him you interpreted his poem to mean that you should live a wild and crazy life, not worrying about the c
How many solutions can a quadratic equation have and why does it vary? How would the corresponding graphs look like?
I really need help! ASAP Someone please! Solve for x. Look at the picture below.
-5=×÷-10[tex] - 5 = \frac{ \times }{ - 10} [/tex]
Much of the manpower for the US war effort in Vietnam came as a result of the draft. A draft is a system by which able-bodied males are forced into military ser