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

An electronic balance shows the mass of a sample of sodium chloride to be 29.732 g. what is the uncertainty of the measurement
Algebra help please!
What are the essential tools for a writer?
A state of equilibrium can exist when a piece of copper metal is placed in a solution of copper(ii) sulfate. outline the characteristics of a chemical system in
of the 180 days of school last year, grace was absent 15 days. what percent of the days was she absent?
European countries would build different types of colonies in different climates (example: France built trading post colonies in colder climates, but plantation
What is 10-c equal to
6TH GRADE COORDINATE POINT THINGIES
Independent variable: Dependent variable: Hypothesis: Control group: Experimental group: Constants:
A movie theater is giving away a souvenir poster to any customer with a concession stand receipt that exceeds $60. The theater sells a bag of popcorn for $6 and