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

Distributive PropertyDrag the item from the item bank to its corresponding match.Use these choices for the A, B, C, D, E3(4 + 7)5(9 - 6)66 × 78 (4 + 2)97 × 4A.
What is the solution to the equation below? 2x2 + 6x = 20​
Which accurately describes how the Treaty of Tordesillas impacted countries in South America? Portugal was given control over the far eastern portion of South
solve by completing the square x^2+12x+32=0​
The map shows the Middle East from 600 to 800 CE. What information do the different colors represent? a - climate zones b - elevation c - change over time d - t
MULTIPLE CHOICE PLEASE HELP UWU Evaluate the function g(t)=[tex]\frac{4}{5} t[/tex] t, when t=50 a)45 b)40 c)35 d)30
Which nursing diagnosis would be most appropriate for a child with idiopathic thrombocytopenic purpura?
Write a expression to express k less than double 3.5. THANKS
solve -mk - 110 > 75 for m
hola me puedes cotizar el envio a Laredo Texas, gracias