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 American victories took place in south Carolina?
Large layers of cross-bedded sand can be indicative of a __________ environment.
PLEASE HELP! WILL GIVE BRAINLIEST If a tall stem is a dominant characteristic, in which case is the characteristic of tall definitely expressed? when both allel
What type of poem is in This Moment by Ales Debeljak?
Hey can someone please explain this to me I keep coming out with wierd answers? 2(50+2w)+2(w)=700
A parcel is traveling on a horizontal conveyer belt moving at 1 meter/second. At the end of the conveyor belt, the parcel lands on a tray after 1 second. Calcul
Help! I’ll give brainliest! If an observer is hearing a rising pitch, that means that the frequency of the waves in their position is falling. True or false?
how are winds formed
The square of the sum of a number and 4 is 36
What drug classification should never be given to a person with bipolar disorder regardless of how they are actin?