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

3. Define "limiting factors" and provide threeexamples.
which of the following is an example of Asian influence in Middle and South America? A) chifa B)reggae C) haciendas D) vaudou
1. What makes bacteria harmful to our bodies? 2. How do our bodies attempt to fight back? 3. Technology has improved dramatically in food preservation, cleans
Two examples of an insulator
adds to be -12 multiplies to be 63
What was one root cause for slavery?
Please can you check my answer You originally draw a design for an art contest on a 4 in. x 5 in. card. The second phase of the contest requires the drawing to
Train A arrives at the train station every 30 minutes, and Train B arrives every 40 minutes. Both are at the train station right now. In how many minutes will b
What is x^2+x-20=0. please help
A lake several streams and rivers that take water away from it.  Does the lake contain freshwater or saltwater?