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

Analysis answers the question: ______. How does the writer say what he says? Does the writer get his point across? Was what the writer said worthwhile?
Which one of the following sentences contains a coordinating conjunction? a. Since it's Tuesday, you should carry out the trash. b. Howard was brave, and he was
A two-kingdom system of classification was used until which decade?
what are the definitions to 'law of soil' and 'law of blood' ? what does it mean ? please help me .
best example of hero inner conflict
The challenge in applying utilitarianism is that (Points : 1) it cannot distinguish among different kinds of pleasures. it is difficult to calculate the various
where is DNA located ? In the chromosome or in nucleus?
. A pattern of being late for work or for appointments is usually
The Great Awakening’s religious resurgence served to revive evangelicalism. How can salvation be attained according to evangelicals
how do you turn 12.576 into expanded form please explain