answersLogoWhite

0

Assuming you mean Visual Basic then:

I really do not know much computer programming, but could you not write something along the lines of:

dim x as integer

dim y as string

If x = 0 then

y = "neither"

Else

If x > 0 then

y = "positive"

End if

If x < 0 then

y = "negative"

End if

End Else

End if

Then if you set the x variable to the number you are interested in the code will set the y variable to "neither", "positive" or "negative".

Hope that perhaps helps a little.

P.S. This answer can't be indented as you would normally do to make the code more readable.

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Math & Arithmetic

Which set of numbers is the positive root of the given number NOT a member?

Negative numbers.


What does negative plus positive equal to?

In math when you are given a negative and a positive number, you should write down the sign of the greatest number and subtract the smaller number from the greatest number. In the problem 3 - 9, three is the positive number, and nine is the negative number. This means you should write down the negative number's sign and subtract 3 from 9, and your answer should be -6.


Is number of days absent from school and the mark in the examination a positive and negative or no correlation?

No correlation. The mark you get in your exam, relates to the number of correct answer you have given. It has nothing to do with your class attendance.


Will the sum of two integers always be negative?

No. For example, 2 + 3 = 5 which is positive, and 2 + (-2) = 0 which is neither positive nor negative. Well, that completely discredits my 4th grade math book that said any number that is not negative IS positive. Therefore, zero is by default a positive number. However, the sum of two negative integers will always be negative. Adding a negative integer decreases the value of the result and given that both integers are negative implies that the sum will be negative. "Implies"? you say. Do you have no conviction? Cannot you say 'determines' when it is obvious? "not obvious"? you say, Then does that mean the sum of 2 negative numbers MIGHT not be negative? See, this is what happens when a 5th grade question is answered by someone with superior attitude.


What is the additive inverse of a negative number?

Additive Inverse would be the number that when added to a given number creates a total of zero. The additive inverse for any negative number would be the positive counterpart. The additive inverse of -5 is 5. The additive inverse of -2 is 2, since -2 + 2 = 0.

Related Questions

When you add a positive number by a negative number will it be negative or positive?

That depends on the values of the given numbers but a positive number multiplied by a negative number will be negative


Is squaring a negative number a negative number?

NO!!! Squaring a negative number is a positive answer. -a X -a (+)a^2 Remember the table for multiplying negative/positive numbers. X + = + X - = - X + = - X - = + If no sign is given , readf it as positive(+)/.


Which set of numbers is the positive root of the given number NOT a member?

Negative numbers.


What are positive factors?

A factor is a number or quantity that when multiplied with another produces a given number or expression. A positive factor is a factor that is positive, as opposed to negative.


What is a positive factor?

A factor is a number or quantity that when multiplied with another produces a given number or expression. A positive factor is a factor that is positive as opposed to being negative.


What does negative plus positive equal to?

In math when you are given a negative and a positive number, you should write down the sign of the greatest number and subtract the smaller number from the greatest number. In the problem 3 - 9, three is the positive number, and nine is the negative number. This means you should write down the negative number's sign and subtract 3 from 9, and your answer should be -6.


Is negative blood compatible wiyh positive blood?

Negative blood can be given to someone with positive blood. Positive blood CANNOT be given to someone with negative blood.


How does the electric field direction change from positive to negative in a given system?

In a given system, the electric field direction changes from positive to negative when the source of the electric field changes its charge from positive to negative.


O negative and B positive give what blood type?

O negative can only be given to individuals with O negative blood type. B positive can be given to individuals with B positive and AB positive blood types.


Make a flowchart that will determine if the given number is positive or negative?

There are many software programs that will allow a person to make a flowchart to determine if the number is positive or negative. The person could use Open Office, Microsoft Word, Microsoft PowerPoint, or Microsoft Excel.


Given the trinomial where both the first sign is positive and the second sign is negative the signs of the factors will be?

One positive one negative (apex)


What is 6 plus negative 1?

6 + (-1) positive and negative will equal negative. so it's 6-1 that would equal 5. positive and positive= positive positive negative= negative negative negative = positive negative positive= negative