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

Classify each pair of numbered angles. Drag and drop the descriptions into the boxes to correctly classify each pair of numbered angles. Each description may be
300,000cm into meters
Complete the rhyme scheme.
need help pls it 6th grade math
The main cause of melting along subduction zones is the:.
Which statement describes the most likely message of this passage?
what is the name of the capital city of Indonesia and what countries have colonized Indonesia also explain about the typical culture of the Indonesian nation in
what is (-2,6) and (5,13) in Slope please help
Do you think that due process might apply to situations outside of court, or legal proceedings? The 5th amendment
Shenhed finished his math assament in 3/8 hours. Then the completed his history assignment in 1/4 hours. How much more time did Shen spend on his math assment