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

Something times 3=-180
All are positive ways to deal with chronic stress EXCEPT: A. Meditation or listening to music B. Ignoring the problem C. Exercise D. Talking with a trusted adul
Mikaela purchased a paddleboard originally priced at $899. If all merchandise was on sa spent on the paddleboard? $385.67 $424.78 $578.51 $604.58
My boss is pregnant is it ok to knit him and his husband a baby sweater?
Which of the following statements best describes the formation of volcanoes?
My boss is pregnant is it ok to knit him and his husband a baby sweater?
Any gîrls here interested in zööm
Determine the solution for 72 = 3(5b − 1). b = 3.5 b = 4.6 b = 5 b = 14.2
I need help with project
SECOND TIME ASKING HELP!!! 6. Jackie has n nickels and q quarters in her pocket. The total value of the coins is at least $24.75. Write an inequality that repre