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

โˆ™ 2009-08-04 12:07:44
This answer is:
User Avatar
Study guides

Algebra

20 cards

A polynomial of degree zero is a constant term

The grouping method of factoring can still be used when only some of the terms share a common factor A True B False

The sum or difference of p and q is the of the x-term in the trinomial

A number a power of a variable or a product of the two is a monomial while a polynomial is the of monomials

โžก๏ธ
See all cards
3.79
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
1504 Reviews

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.


Are negative decimals integers?

Only whole numbers are integers, whether negative or positive.


Are irrational numbers negative integers?

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


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 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.


Why is negative 3 a rational number?

Any integer, whether it is positive or negative, is a rational number.


What is critisism?

Criticism is having a comment for something and delivering it, whether in a positive or completely negative way. Criticism is having a comment for something and delivering it, whether in a positive or completely negative way.

People also asked