6
answers
2
watching
434
views

A java program that would add the first 10 numbers, then skip the next 10 numbers, do this alternately from number 1-100 (add 10 numbers, skip 10 numbers, add 10 numbers, skip 10 numbers again reaching the number 100)

USE only one for loop statement and two ifs statements, there should only be 3 variables. Display your answer by using a dialog box (JOPTION).

For unlimited access to Homework Help, a Homework+ subscription is required.

Avatar image
Read by 3 people

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Avatar image
Read by 6 people
Already have an account? Log in
Avatar image
Read by 6 people
Already have an account? Log in
Avatar image
Read by 6 people
Already have an account? Log in
Avatar image
Read by 6 people
Already have an account? Log in
Avatar image
Read by 7 people
Already have an account? Log in
Start filling in the gaps now
Log in