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

Why does the moon lack an atmosphere?
Find the angle complementary to the angle 80°.
bill bought a large submarine sandwich and cut it into 8 equal pieces. He ate 1/4 of the sandwich. How can you write how much of the sandwich Bill ate as eights
On january 1,2001 a car had a value of $15,000. Each year after that yhe cars value will decrease by 20 percent of the previous years value Which expression rep
What is the image of point (4, 5) after a counterclockwise rotation of 270º about the origin? A- (5,4) B- (-5,4) C- (5,-4) D- (-4,-5)
Need help question15
In what way was the battle of san jancinto important
If the theory of evolution were true it would not be possible to classify organisms into distinct categories. True or False
Three of the following changes in the Roman republic were made by Julius Caesar which was not
what two ways did Napoleon influence France during his reign?