answersLogoWhite

0


Best Answer

write a c++program by using if statement to read a number and check whether it is positive or negative

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program By using if else statement to read a number and check whether it is positive or negative?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

When you add a positive and a negative what does it become?

the answer could be negative or positive depending on whether the negative number you're adding is bigger than the positive number


What stament is always trueabout the sum of a negtive integer and positive integer?

The statement is: "Their sum is always an integer." Whether the sum is negative or positive depends on the two original integers.


What is a correlation statement?

a correlation statement is a sentence that says whether the points on a scatterplot have a positive, negative or no correlation.ex. This graph shows a negative correlation, as the number of cows increases (x axis data) the profitability decreases (y axis data).


Input a number and find whether it is positive or negative?

Placing a question mark at the end of a statement does not make it a sensible question. Try to use a whole sentence to describe what it is that you want answered.Yes, it is possible to input a number and find whether it is positive or negative. Yes, it is possible to write an algorithm to do that. But what is it that you want?


What adds to positive two but multiplies to negative five?

Nothing five is a prime factor and so nothing whether positive or negative will multiply to negative five, this question is impossible. The two part doesn't matter because the five part makes the whole statement false.


What is a personal financial statement?

A personal financial statement form is a document that helps you to calculate your personal net worth. It takes into account all of your assets and liabilities and calculates whether your net worth is positive or negative.


Is the product positive or negative when an even number of negative numbers are multiplied?

Any 2 negative numbers, whether even or odd, when multiplied are positive


Without actually multiplying how can you decide whether the product of two integers is positive negative or 0?

the answer is a positive because two negative or two positive is always positive.


What is a personal financial statement form?

A personal financial statement form is a document that helps you to calculate your personal net worth. It takes into account all of your assets and liabilities and calculates whether your net worth is positive or negative.


Are irrational numbers negative integers?

No. Every integer, whether negative or positive, is rational.


Are negative decimals integers?

Only whole numbers are integers, whether negative or positive.


What happen when you divide negative and positive number?

When you divide or multiply positive and negative numbers, you first do the division or multiplication as normal. The next step is to assess whether or not the answer will be negative or positive. If the two numbers of the question were the same (negative and negative or positive and positive) then the answer will be positive. If the two numbers in the question were different (one negative and one positive) then the answer will be negative. Thus, if you divide a negative number by a positive number, the result will be the same as normal division, but the answer will be negative.