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

One of the major accomplishments of the shang dynasty was
please help and show work please​
the news was broadcasted yesterday​
Usinf the scatter plot, select all the true statements
If you were a solider under MacArthur's command in the Philippines, you would have fled to Singapore when you were attacked likely not made it off the island in
Integral of u' over (u^2-a^2)
que piensas sobre el concepto de la familia hispana vs. la familia norteamericana.
a) The pass marks in an examination is 40%. Rajani secured 295 marks andfailed by 25 marks. Find the full marks of the examination​
When dictators liberalize in an attempt to co-opt opposition groups, they are trying to strengthen their hold on power. If they miscalculate and assume that the
Please help me!! no links