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

Which physical characteristics have played a role in the region's environmental problems? abundant precipitation arid climate fertile soils oil resources north
Indirect interview requests include of all of the following techniques EXCEPT:
Choose the correct verb to fill in the blank. The graceful moves of the dancer _______ the audience which sat uncommonly still throughout the performance. A.
A strain is A. a twist, pull, and/or tear of a muscle and/or tendon. B. more severe than a sprain. C. always the result of improper conditioning. D
a triangle with an area of 202.5 has a height that measures 15 find its base
A large pizza has a diameter of 18 inches. How many square inches of pizza does the large pizza have?
I don't know how to do this question, help!!
Need help please asap.
1/2(10x+20y+10z help me please
Why did the United States attack taliban troops and al qaeda training bases in Afghanistan