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

Write as a radical expression and evaluate if possible
Choose the best description of the roots of the equation. 4 x^2 - 3 x + 7 = 0 imaginary roots real and rational roots double root real and irrational root
Which two statements about an electric motor are true? a.It converts motion energy to electric energy. b.It depends on the relative motion of a magnet and a cur
Javiars puppy gained 12 pounds in 8 weeks if how much weight did he gain each week
Which of the following directly contributed to soil erosion on the Great Plains in the 1930s? A: railroads B: heavy rains C: farming D: homesteading
Which type of health insurance plan is not considered a managed care plan? A. preferred provider organization (PPO) B. traditional C. health maintenance org
I need help how do you solve #4
what is the factorization??
Find the area of a circle with a circumference of 37.68 units.
Find the missing side please !!