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 oldest documented forms of art are the visual arts. 1) True 2) False
How is fraudulent email spread that makes it so difficult to track?
If one foot equals 12 inches, how many feet is 42 inches? (please explain as well bc idk what im doing at ALL :') )
What animal lives in the Antarctic lands and dwells on seals? Also is top of the food chain?
In which group on the Periodic Table does the atom pictured belong? A) 4 B) 6 16 D 14
b. How do metals and non-metals differ chemically?1​
How to authors build suspense in stories?
Modern world demonstration with exotic knowledge? Miserable thinkers.​
Demi has 221 songs on her phone. The songs take up 884 megabytes of storage. Each song takes up the same amount of space. How many megabytes do 135 of these son
Alex made 3/5 of a batch of cookies in 3/10 of an hour. How much time will it take him to make 1 full batch of cookies?