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 quotient? PLEASE HELP QUICK
Can anyone help me on this please​
what mexican action angered president polk
What is the most likely genre of this passage? Watching my parents struggle to control my brother, I learned something important that day: My parents are not pe
food and territory are balancing factors in an ecosystem what type of phenomena balance these factors
Solve the following equation. Then place the correct number in the box provided. 2x - 1 ≤ x + 5
Which binomial is a factor of 9x2 – 64? 3x – 8 9x – 32 3x 32 9x 8.
You have a 0.200mol piece of aluminum. How many atoms are present in the aluminum?
Simplify the expression: 1b+2c=3d
Wind can carry seeds to new places do more plants can grow.