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

Write a short story in about 150 to 200 words based on the image given below please answer I'll mark u as brainlyiest ​
help me please . Very much appreciated​
The total mechanical energy of a basketball is 450 J. If the kinetic energy is 226 J, what must the potential energy be?
2. 18 Express 400 as a percent. (A 4.5% B) 7.2% © 45% D 72% Help pls
How much does the Human body consume calories minus 2,400 plus 3,500 equals what (please help)
Find the smallest digit d so that 437,d03 is divisible by 9.
Simplify. What are the restrictions on the variable?
Please help me with this and I will mark brainliest.
What are the ordered pairs of the solutions for this system of equations? f(x) = x2 – 2x + 3; f(x) = -2x + 12
Please I need help with this math question​(with explanation)