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

BEST ANSWER GETS TO BE BRAINLYEST!!!!! The measures of two angles of a triangle are 147° and 17°. Find the measure of the third angle. A. 164° B. 130° C. 16° D.
english question down below
What is the surface area of a rectangular prism with a base length of 9 yd, a base width of 5 yd, and a height of 4 yd?
Proteins in eukaryotic cells that controls gene expression are called? A. Enzymes B. Transcription Factors C. Hormones
Mis hermanos y yo no tenemos los mismos profesores. mi hermano tomás estudia el espa?ol. _______ profesor de espa?ol es el se?or morales. yo también estudio el
For which value of x is the equation 2x-6=x-1/2x true? A. 1 B. 2 C. 3 D. 4
Solve for y. -1 + y 8 < 15
Which best describes the asymptote of an exponential function of the form F(x) = bx?
What is a trait of participatory drama
What is the distance between-10 and 10 on the number line?