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

Tin has ___ valence electronics, and chlorine has ___ valence electrons.
Unit 4 Lesson 1 Coding Activity 2
3/65 find the equivalent fraction
I need help please help
was the feels by twice really worth it ?​
Why would Pasteur have boiled the meat broth before even starting the experiment?​
how does strength training improve body composition?
Can someone pls solve this for me using substitution
a child who is punished for swearing at home but reinforced for swearing on the school playground is most likely to demonstrate a patterned habit of swearing th
which one is greater 4/6 12/12​