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

Which aspect of the Roman Empire aided in the spread of Christianity? A There were many roads and waterways, and travel was safe. B Persecution only occurred
2. What is the mode of the data set? 27,35,57,36,44,57,33,34,66,30,33,42,57,23,35 A. 35 B. 33 C. 42 D. 57
Shays' Rebellion was an insurrection protesting high land taxes. A)True B)False
Two step Equation a.3x-8=31
Which of these is a way to be sure that products or services are acceptable to customers? A. Self-talk B. Quality control C. Socializing
12.8g of zinc reacts with hydrochloric acid. what mass of hydrochloric acid is produced
624 feet to 702 feet
Choose the answer that best describes the form of bias expressed in the following problem.A campaign pamphlet for a presidential candidate uses photographs of o
What is the measure of an interior angle of a regular hexagon? A. 120° B. 180° C. 240° D. 300°
how did his actions in the watergate affair cost him the presidency?