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

how to write a word problem
1)Which of the following describes a basic concept of democracy.? A) individual worth is valued more than the protection of all citizens. B) all men are of equa
Today, the economies of the Pacific Islands rely heavily on which of the following needs? A. sheep, because wool supports the economy B. importing raw materials
Colonel George Washington led a militia force into the Ohio Valley in 1754. What was the name of the fort that Washington built and was near the site of the fir
Can you give examples of carbon in our nonliving environment?
Nitrogen gas (N2) and hydrogen gas (H2) combine to form ammonia (NH3). Which equation correctly represents this reaction? A. N + H → NH B. 2N2+ H2 → 3NH3 C. 2NH
ted is asked to multiply 10^2*18.72.how should he move the decimal point to get the correct product?
x^2-9x+8 what is the Factor to this problem
Explain why the graph y < X cannot lie in quadrant II
Born as Saul, his name is known as _________ and he spent his entire life after conversion spreading Christianity.