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 do accessory pigments help chlorophyll?
Which equation shows the variable terms isolated on one side and the constant terms isolated on the other side for the equation -1/2x+3=4-1/4x? a. -1/4x=1 b. -3
Take some time to create a cultural inventory. Note the components of culture that have defined you and list as many as possible here. Then write about the ways
Please answer! If you don’t mind, can you explain
What is a fraction equivalent to 1/3
why was russia drawn into a conflict with germany after ausria-hungary declared war on serbia ?
MUST READ STORY WILL GIVE BRAINLY IF CORRECT!!! In “perseverance,” which theme is reflected in the lines, “Life’s field will yield as we make it / A harvest of
During what century did Muhammad recieve his first revelation from god
Susie wants to take her friend out for lunch.She wants to spend $9.75 each person. How much will she spend in all.
What is the organ of hearing ?