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

Help please!! . . . .
What was the result of the battle of Tippacanoe
please please help asap right answers only
I need the answer to num 5
PLEASE HELP ME FACTORISE THIS ASAP! TYSM ;)–3x+2y=94x+5y=–11​
Can someone please help me on this problem? I tried setting it up but kept getting the wrong answer... Please help me!
A car salesman is stringing banners from the top of the roof to a fence pole 20 feet away. The top of the roof is 29 feet from the ground. The fence pole is 18
Which set of sides will not make a triangle
i need help with 11 and 12. may you please help me.
A helium-filled balloon contains 125 mL of gas at a pressure of 0.974 atm. What volume will the gas occupy at standard pressure? 128.33 mL He 125.974 mL He 121.