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

620,000 round off by ten thousand
how do you write 5,920,178 in expanded form
One day, 758 people visited the monkey house at the zoo. What is 758 rounded to the nearest hundred?
How is finding the unit rate helpful before graphing a proportional relationship
in what role in medieval society might women have had the most chance to be powerful?
A Wood carver has made 179 carved animals. The animals will be shipped in boxes that hold only 8 animals each. How many boxes will be completely filled ? How ma
How did the motives of the virginia colonists differ from those of the separatists who settled in plymouth
round 1045 to the nearest thousand
How many times does 8 go into 64?
in what role in medieval society might women have had the most chance to be powerful?