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

how does churning in the stomach affect digestion
I need a close for my interview
A circle has a circumference of 144π. What is the radius of the circle?
Why is potassium iodide electrically neutral?
The Governor's vetoing of a bill that the General Assembly approves is an example of what principle? Question 13 options: judicial review checks and balances se
What is the current estimate for the total number of species on earth, and why is it so hard to get an accurate count?
How did the us, including the cia, wage the cold war in the 1950s?
The number of diagonals in any polygon is whole number. But on the other side the formula of the number of diagonals in any convex polygon is in a fraction form
When one says that human characteristics change in multiple ways over time, it is referring the concept that lifespan human development is:?
Who led the first expedition into the southeastern united states?