Study guides

☆☆

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?

Related questions

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

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

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

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?

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.

Only whole numbers are integers, whether negative or positive.

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

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

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

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.

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

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