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

56 is 70% of what number
10-3.2n;n=2. What the answer
What is (2n + 20) + 60 = 90?
In which modern country is St Nicholas's birthplace and hometown
what happens in the arctic circle during summer? why?
-6x+y=39 how do i make this an ordered pair and 0 substitutes x and y
A circle has a diameter of 15 feet. What is the circumference of the circle? (Express your answer using π.) A.15/π ft. B.15π ft. C.30π ft. D.π/15 ft. Help me
What was significant about the fossils Darwin found?
Which Asian leader used a military of 600,000 soldiers and thousands of war elephants, cavalry, and chariots to extend the Indian Empire from Bengal to Afghanis
A car travels 350 miles on 20 gallons of gasoline. How many gallons will be used to travel875 miles under the same conditions?