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

This external structure is often a feature of bacterial pathogens; it aids in allowing the bacterium to counteract the body's immune system cells, such as avoid
What make Nwoye feel better? In Things Fall Apart
Do my guys got me? I’m giving brainliest
Which of the following was Matthew Maury's greatest accomplishment? A. Maury sailed around the world in the fastest time. B. Maury discovered the smallest membe
What is the solution to 4x+6<18 Ox<3 Ox56 O x348 Ox596
PLEASE HELP ME THANKS
Simplify 2(w + 3) – (w – 1).
what is RQ value of respiration​
When does Leo say that students at school are most interested in one another?
help me with this to ​