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 many EARTH days does it take the moon to make a complete rotation
Wherever the sharmas visit india, they stay _____(at/in) a village near Amritsar
Solve the given triangle by finding the missing angle and the other side lengths.
Please help fast Which of the following statements is true of sound transmission through various mediums ? A. Elastic solids prevent sound from being transmitte
Find all factors of13
Which shows the correct first step to solving the system of equations in the most efficient manner? 3 x + 2 y = 17. x + 4 y = 19. x = negative 4 y + 19
What is the value of 2 StartRoot 6 + p EndRoot minus 3 p cubed when p = negative 2? -32 -16 32 56
The number of combinations of elements taken at a time is given by ________. Fill in the blanks.
$1,240 at 8% compounded annually for 2 years
When agricultural machines were introduced, a number of industries benefited from them. At the same time, a number of farmers and small organizations that relie