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

Me and my classmates were trying to solve this and we couldn’t come to an agreement. What is the answer to this question?
which answers are equivalent to Q + p + Q + p + Q​
Help me plssss with a short story ideas
Which power did Mexico gain independence from? Maya Aztec Great Britain Spain
essay about worst vacation?​
1 2 3 4 5 6 7 8 9 10 TIME REMAINING 39:46 Yuto and Lian are at train stations 1,880 kilometers apart. Yuto boards a train heading east at an average sp
If John Needed 1000 Muffins a week for him party and Each person Ate 100 Muffins out of it how many would be left?
The FBI considers the Animal Liberation Front to be a/an _______ organization. A. agroterrorist B. loosely affiliated extremist C. issue-oriented ad
Suppose there are 2 blue, 2 yellow and 2 red in a bucket. If you pick two balls, at random, without replacement, what is the probability that the two balls will
I did the first one but can you help me with the second one plz??