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

1+sin^2 x = 2-cos^2 x
Helen earned $12 each weekend babysitting her brother after the third weekend Helen buys a new cd for $12.48 how much money does Helen have left after buying t
what is a job interview
Ramon spends 2/5 of his monthly income on rent, 1/5 of his monthly income on utilities, and 3/4of the amount remaining on food and recreation. Ramon saves each
Describe how to use a tens fact to find the difference for 15 -8 on a second grade level
What is the slope of the line whose equation is 5y + 6x - 2 = 0
Your classmate is unsure about how to use side lengths to determine the type of triangle. How would you explain this to your classmate?
Anchorage commissary were closed 3 days
76 divided by 5 what is the answer please answer right away
There are 25 gold paper clips and 75 silver paper clips in each box.How many silver paper clips are in 8 boxes?