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

What statements are true about leaders? Check all that apply.
Helllllppppppppppppppppppp
Please I really need help
HIP HIP HORRAY FOR NHS. YOU ARE HERO'S.​
Evaluate 4 + (m - n)^4 when m = 7 and n = 5
equation for working out the area of a rhombus
How did westward expansion lead to 1. Missouri Compromise of 1820 2. and Compromise of 1850
Find the product of A and B: A= -8+4i, B= 2-5i
Step 2: Calculating distance using varied speedsSuppose the cheetah sprinted at maximum speed for 8 minutes and then slowed to 40 mph for the next 8 minutes. a.
Why did the rate of potassium permagnetate slow down after each five minute interval?