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

The table below shows the number of pizzas sold each day at Pete's Pepperoni Pizza. The goal at Pete's Pizza is for 75% of the pizzas sold each day to have pepp
How do you find the interior angle of a regular polygon
Why must south africa include renewable energy in its energy mix
How many people lived in the north’s 23 states during the civil war?
Plz help on the one I got wrong
What figure of speech is illustrated in this sentence? "she's like the wind." metaphor personification simile
What kinda transformation is shown? Explain how you knew which type it was. Thx for helping!
What term is used to describe a region just beyond or at the edge of a settled area?
You want to save twenty of your vacation pictures on your computer. Which is the best place to save them?
a rigid 8.77L tanks contains 1.45 moles oxygen at 20°C. what is the pressure in atm?