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 political mudslinging?
James II was restored to the throne in 1660. a. True b. False
What do we call the visible streak of light created by space debris entering Earth's atmosphere? A. meteor B. asteroid C. meteorite D. meteoroid
who was the first person to talk spanish in spain and the united states
An artist creates a mural that depicts the local species living harmoniously in their natural environment. This mural is an example of community art for which p
How did mountains and river make it difficult for one group to control all of Europe?
Use Newton's first law of motion to explain why air bags in cars are important during head-on collisions.
compare the ruler you made to an inch ruler.Describe a how they are alike and how they are different
The tip of your nose and the palm of your hand have nerve endings that are _____. 2 inches apart far apart 1 inch long close together
' X (8 X 9) .8 gm X 8 '7