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 a rule for the pattern 8,6,9,7,10...
In 500 b. c. the Roman government was beginning to form what would become a republic. a. True b. False
By the fall of 1940 germany controlled how much of western europe a. very little b. almost all c. about half d. none
What is Sarajevo? the capital of the Netherlands the capital of Nigeria the capital of Germany the capital of Bosnia
What precent does this change $16 to $4
What is 7/9 written as a decimal please explain!!
Which element is capable of forming long chains by forming single, double, or triple bonds with itself?
The Union General who assumed command of the army during the last year of the war was ShermanGrantMcClellan.
Find the perimeter of the rectangle if each block represents one foot(show your calculation)
Prior to the outbreak of war, French and British politicians tried to solve their problems with Hitler and Mussolini through a policy of A. taking a stand again