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

The bar graph below shows trends in several economic indicators over the period . Over the​ six-year period, about what was the highest consumer price​ index, a
please help me with this math question
If the measure of arc GH= 90° and the measure of arc EF= 45°, calculate m∠GDH.
A bowling ball is pushed with a force of 22.0 N and accelerates at 5.5 m/s2. What is the mass of the bowling ball? Ik the answer is 4.0, but I got it wrong for
Please help Asap. Will give brainiest if answered correctly with a math question
1) Which of the following languages does not use a definite article ? a) French b) Russian c) German d) Modern Greek
What are the uses of distillation process any 5
How does the author create and maintain tension during the scene at the cornucopia?hunger games chapter 21
Please answer this question now only answer if you know the answer
If you sleep an average of 7.5 hours each night, how many hours do you sleep in a year?