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

Who wanted to establish a homeland after European persecution
Which country does not claim ownership of the invention of churros?.
a square has a perimeter of 60 ft what is the area
What is active listening?
How much did george rr martin contribute to elden ring?.
Atticus's cross examination of Mayella gives us a picture of her life. Does this picture create any sympathy in your mind toward Mayella (without evidence from
A car is moving 28.5 m/s when it sees a policeman. It slows to 15.0 m/s in 2.37 s, then drives at a constant speed for 8.25 s. How far does the car travel in th
what are used to infer genotypes from the observation of phenotypes?
Which of the following best describes Christianity? A. The religion based on the teachings of Buddha B. The worshipping of multiple gods C. The religion based o
Why are the spores produced on the underside of the fronds?.