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

if a sample of magnesium has a mass of 60 g, how many moles of magnesium does the sample contain
what muscles are involved when you're tying your shoe laces
solve for x₁ and x₂6x₁+3x₂=606x₁-2x₂=80
does anybody know how to write 45/70 in simplest form????
What Should I Know About Nigeria?
A microscope is set so it makes an object appear 4 x 10`2 times larger than its actual size. A virus has a diameter of of 2 x 10`-7 meter. how large will the di
what is an undefined nuclear region containing only nucleic acid
please help :-( thanks
What do you think was the most serious problem faced by settlers in Virginia? Why?
how do I divide a fraction to a decimal