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

140% of what number is 48
which operation will change the value of any non zero number? a. adding zero b. multiplying by zero c. multiplying by one d. dividing by one
Why did minority groups receive only limited benefits from progressivism?
How many times longer is one centimeter than one millimeter
Which statement about American prisons is correct? A. More people are sent to prison for violent crimes than non-violent crimes. B. Drug offenders are the main
When I (enter) the chalet all my friends (talk) about my mysterious loss: a) enter,were talking b) was entering,talk c) entered,talked d) entered,were talking
Which part in this excerpt from Theodore Dreiser’s “My Brother Paul” reflects Dreiser’s desire for acceptance?
Help me plz! |9 -5| - |6 - 8| = A. -6 B. -2 C.2 D.6
In what ways should an electronic or scanned resume different from a printed resume A. None, both our pre-printed forms supplied by the employer B.special forma
Complete the following sentences with the correct Spanish words. 1. Preparamos toda la comida en . 2. Yo duermo en mi cama, que está en