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

write the ratio as a fraction in simplest form. 16ft to 6yd
the process that removes metabolic waste products from an organism is known as
K stands for a whole number. K + 7 is greater than 100 K - 7 is less than 90 Write all the numbers that k could be. Please help me
write the ratio 6 ft to 4yd as a fraction in simplest form.
Select the product of (7x - 2)(7x + 7).
How many $0.21 pencils can be purchased for $7.00? Show your work.
There are 6 pencils in a box. 3 of the pencils are red, 2 are blue and 1 is green. A pencil is taken out of the box without looking. What is the probability tha
how does art inspire some people
a trapezoid has an area of 20cm squared and a height of 5 cm. what is the sum of its top and bottom sides
How do round, spiral, and rod-shaped bacteria look like?