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

What is the equilibrium price per DVD?
What is the ratio of [a–]/[ha] at ph 3.75? the pka of formic acid (methanoic acid, h–cooh) is 3.75?
A recent survey found that 65 percent of americans look up political information on the internet. these are examples of what kind of citizenship?
What organelles in a human cheek cell are visible using a compound light microscope?
The electrolyte in a typical wet storage cell or battery is a mixture of water and
The Catholic Church tried to convert the Pueblo Indians
In portfolio​ analysis, a company must identify​ __________, which are key businesses that make up the company.
Which is a way to check the answer 120 divided by 4 = 30
An election ballot asks voters to select two city commissioners from a group of four candidates. In how many ways can this be done?
What was the effect of the formation of the Delian League?