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

A large number of this group of people labored on the Central Pacific track of the Transcontinental Railroad.
help please - first question
Using the information given, you have to prove the statement they ask you to.
How do rainforests influence Earths climate? (2 points)
Sara needed 8 test tubes for 3 different experiments. the first experiment required 2 test tubes and the other two experiments required the same number of test
Round 785 to 3 significant figures.
todays hard drives give up to or more than 1000gb of space. true or false
Which is the best estimate for the product of 104.143 × 10,021.4?
Bulimia nervosa cannot be prevented, but it can be treated if diagnosed early. A. True B. False
Can someone please help me