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

which sentence has no errors? A. When we got to our campground, it was only mid-morning, but the campsites were already filling up fast. B. When we got to our
Which element has the largest atomic radius?
How many grams of sodium hydroxide pellets, NaOH, are required to prepare 50 mL of a 0.15 M solution.
Brandon does not believe he is prejudiced. However, he got very nervous when told he was randomly assigned to room with a man from Costa Rica for his first year
The sum of two numbers is −102. One number is 62 less than the other. Find the numbers.
what is your father name? ( make statement)​
9x = 3x - 36 solve please
Which of the following represents a geometric series 2+6+18 2,6,10 2+6+10+ 2,6,18
Water particles adhere tightly to soil particles due to _____. a. adhesive properties of minerals in the soil b. hydrogen bonding with negative charges on soil
A 50-N crate sits on a horizontal floor where the coefficient of static friction between the crate and the floor is 0.50. A 20-N force is applied to the crate a