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

suppose y varies directly as x and y = 21 an x=3 find x when y=42
Find the point on the hyperbola xy=8 that is closet to the point (3,0)
The death rate for children in the factories was twice that of adults
when a wave hits a surface through which it cannot pass and bounces back it undergoes?
how far away is Guangzhou from Beijing
When a monocot emerges from the ground, what embryo part are you seeing?
I just need someone to explain what this question means.... I am confused. Just tell me and i can answer it probably. What is the consensus (majority) on the pr
Which of the following is one way that the circulatory system helps maintain body temperature? A. carrying heat around the body B. controlling the flow
Everything around us is made of
The longest phase of the cell cycle contain