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

St. Valentine is indeed the patron saint of love, but he has many other duties. He is also the patron saint of?
What date was the first recorded Valentine card sent?
when two air masses of different temperatures come together, they can cause a
how many molecules are in 9.8 grams of calcium
why would genetic material need to be able to reproduce
What is an synonym for photosynthesis
Mark if the statement about Benin is correct. A. Benin City was the well-organized capital of Benin. B. Benin dominated the rain forest and the coastal regions
which two square numbers have a difference of 51?
-3(4v+1)-3(2v+3) how do you simplify
salt marshes are primarily influenced by