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

Mini-Project: Cents and the Central Limit Theorem 1. Collect a sample of at least 50 pennies by setting aside all the pennies you receive in change for severa
How do you?...Multiply out and simplify 10(2x-1)-20x?
what's another word for over thinking?
Simplify the expressions: cot 0 sec 0 A. Sin0 B. Csc0 C. Cos0 D. Cos* 0
what's another word for over thinking?
in the number 13,407.036 there are two 3's. Explain how the values of the 3's are related.
What is the amplitude of y=1/2 sin2x
What are the functions of receptors in our body? Think of a situation where receptors do not work properly. What problems are likely to arise?
how were north american colonies all similar in the 1700s?
you have a standard deck of 52 cards. you pick one card and then, with out putting the first card back, you pick a second card. what is the probability that bot