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

what are the landforms of vermont
An oscillator makes four vibrations in one second. What is its period and frequency?
Why was there growing involvement of the USA in Europe in the years 1945-48 ??
What is a tonal collage? We learnt it in school BUT  I can't remember.
The sum of a number and 18 times its reciprocal is 11. Find the number(s). Let x represent the unknown number. The Reciprocal of x is____?
A sequence has an initial value of 10 and each term is twice the previous term. Which function models this sequence?1) a(n)=10(2)^n2) a(n)=10(2)^n-13) a(n)=10+2
A sequence has an initial value of 10 and each term is twice the previous term. Which function models this sequence?1) a(n)=10(2)^n2) a(n)=10(2)^n-13) a(n)=10+2
Work out the number that is halfway between 27 times 38 and 33 times 38.Show your working out aswell.
An oscillator makes four vibrations in one second. What is its period and frequency?
What are good book to read from war times about family / adoption / giving up of children