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

Where is energy found in ATP
Which statement best reflects Patriots' feelings during the Revolutionary War? 1 of 3 QUESTIONS O The British government has mostly treated the colonists fairly
What is the difference between a strong acid and a weak acid and a strong base and a weak base?
what is a theme in a story
v3x5v=3v=5 – 13.151x3 15i? - 1-36
During each minute of a comedy show, Carlin laughs 5 times. Carlin watches 3 comedy shows every day, and each show is 40 minutes long.
Those who truly acknowledge the Lord Jesus Christ know God. True False
How many significant figures are in the number 0.00230? O 6
need help please forgot how to do this!​
Which is the Best definition of the Colombian exchange? A. The name of Columbus’s last expedition to North America B. The transfer of diseases from Native Ame