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

A car is driven 100 kilometers in the 1st week, 130 kilometers in the 2nd week, 160 kilometers in the 3rd week, and so on. What will be the total distance trave
Write the word form for 2.251
What is the greatest common factor of 42,84,and 105 and how do you find it
How do I convert negative 3 over 5 to a decimal
Describe how the coming of World War II ended the Great Depression. What region of the nation benefited most spectacularly?
what the rational numbers equivalent to 6/9
an airplane climbs at a rate of 66.8 feet per minute. It descends at twice the rate that it climbs. Assuming it descends at a constant rate, how many feet will
how did Japan's feudal system impact society?
What is the biggest states when it comes to total area and the number of citizens? Thanks for your answer!
How do I convert negative 3 over 5 to a decimal