answersLogoWhite

0

How do you write java code to sum -2 4-6 8?

User Avatar

Anonymous

∙ 13y ago
Updated: 8/20/2019

In Java, just write a plus sign between the numbers you want to add, or variables that hold those numbers. For example:

result = -2 + 4 + -6 + 8;

or:

a = -2;

b = 4;

c = -6;

d = 8;

result = a + b + c + d;

Don't forget to declare the variables.

User Avatar

Wiki User

∙ 13y ago
Copy

What else can I help you with?

Related Questions

What is the sum of 54 and 46?

the sum of 54 and 46 is equal to 100 54 + 46 = 100


What is the sum of 28 and 46?

It is: 28+46 = 74


23 plus 46?

The sum of 23 and 46 is 69


Sum of 46 and 8?

54.


What is the country code for Sweden when calling from Australia?

The country code for Sweden is +46, no matter where you're calling from.


What is the nearest tens of 46?

50 is 46 to the nearest 10


Find the product when the sum of 59 and 46 is multiplied. By their difference?

To find the product when the sum of 59 and 46 is multiplied by their difference, we first calculate the sum: 59 + 46 = 105. Next, we find the difference: 59 - 46 = 13. Finally, we multiply the sum by the difference: 105 * 13 = 1365. Therefore, the product is 1365.


What is the sum of 36.4 and 9.76?

46 ahaha


What is the sum of 1 plus 45?

46 is.


When was Code 46 released?

Code 46 was released on 08/06/2004.


What was the Production Budget for Code 46?

The Production Budget for Code 46 was $7,500,000.


Which country has the international code plus 46?

Country code +46 is Sweden.

Trending Questions
What are sweet things to say to a guy? What tool do you need to dig for buried treasure? What is the physiology behind emotional disorders? What does the name Teresa mean? What actors and actresses appeared in Bertong karate - 1967? What are the problem of ethical research in qualitative and how can one approach them? How many quarts of atf in a murano 2005? Bachalors accounting entry pay? What part of a meter is a centimeter? Magbigay ng halimbawa ng isang tradisyonal na awit at awitin ito? Why don't adventist's just stick to the bible instead of injecting Ellen white's writings in to so much of what is taught? What are songs are in mobbed episode 1? Is Webster a Jewish name? What is QOS and list the Techniques for achieving good QOS? If you deposited money into your checking account at about 250 is it possible you can withdrawal or pay for something with your debit card at about 330? Tony likes indigo but not blue He likes onions but not turnips he likes forms but not shapes According to the same rules does he like tomatoes or avocados? What is GP3? Do boxing bag workouts get you fit? How do I find the league standings for U13 soccer boys NorCal? Who is playing Batman in The Dark Knight Rises?

Resources

Leaderboard All Tags Unanswered

Top Categories

Algebra Chemistry Biology World History English Language Arts Psychology Computer Science Economics

Product

Community Guidelines Honor Code Flashcard Maker Study Guides Math Solver FAQ

Company

About Us Contact Us Terms of Service Privacy Policy Disclaimer Cookie Policy IP Issues
Answers Logo
Copyright ©2025 Infospace Holdings LLC, A System1 Company. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Answers.