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

In which sentence ia the word place used as a predicate nominative
Which outdated atomic model could be linked to chocolate chip cookie dough?
PLEASE HELP ASAP!!! CORRECT ANSWERS ONLY PLEASE!!! Which situation describes a directly proportional relationship? A. As your velocity increases, your time decr
Archaic indians who hunted the bison herds of the great plains were
A car takes 55.3 seconds to travel 1 mike. How long does it take The card to travel 5.8 miles? Round to the nearest whole number to find the estimated answer. F
Describe the differences in the abiotic factors of the open ocean photic zone compared to the open ocean aphotic zone.
How would you do number 3
How to write a reflection in writing?
What type of was congress prohibited from doing under the constitution until 1808?
Nikita borrows 1 11 superhero book and 1 11 dragon book from the library. The superhero book has a mass of 2 0 0 200200 grams. The dragon book has a mass of