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

using property find a.2/5×(-3/7)-1/6×3/2+1/14×2/5with steps plsb.6 2/5×3/2+1 - 7 1/3 ×3/2​
You see a customer who looks as though he/she may be having trouble getting an item off of a shelf. What should you do? (a) Offer to get the desired item
"The final decision of where and when to use atomic bomb was up to me. Let there be no mistake about it. I regarded the bomb as a military weapon and never doub
PLS HELP ASAP!!! I don’t understand this at all
During interphase of the cell cycle. a growning cell undergoes DNA replication. What is the primary function of DNA replication?
Find the slope of the line passes through the pair of points (-5.5,6.1), (-2.5,3.1) A. 1 B. -3/8 C. 3/8 D. -1
Who was sukarno, and what did he accomplish in indonesia
Why were wolves introduced to Coronation Island?
Solve for x in the diagram below. 15х – 30° 10x +5° х = 12 х= 8 х=7 х = 11
"Mr.Ahmed teaches us English"make it passive