###### Asked in Java Programming

Java Programming

# WAP to print sum and average of multiples of 5 from 500 to 600?

## Answer

###### Wiki User

###### 01/02/2009

public class Test {

public static void main(String[] args){

int i = 500;

int sum = 0;

int avg = 0;

int counter = 0;

do {

i = i + 5;

sum = sum + i;

counter = counter + 1;

} while (i <= 600);

System.out.println("Sum: " + sum);

avg = sum/counter;

System.out.println("Average: " + avg);

}

}

## Related Questions

###### Asked in Factoring and Multiples

### What are multiples of 20 and 25?

100, 200, 300, 400, 500, 600 . . . ∞

Read More

###### Asked in Factoring and Multiples

### What is the first 6 multiples of 100?

100
200
300
400
500
600

Read More

###### Asked in Math and Arithmetic

### What are the first six multiples 100?

100, 200, 300, 400, 500, 600.

Read More

###### Asked in Math and Arithmetic

### What are the first six multiples of 100?

They are: 100 200 300 400 500 and 600

Read More

###### Asked in Airlines, Boeing

### How fast does an airplane go?

an aeroplane can go between 500-600 mph
The average speed of an airplane is about 500-600 mph
...

Read More

###### Asked in Personal Finance, Math and Arithmetic

### First ten multiples of 100?

The first 10 multiples of 100:
100, 200, 300, 400, 500, 600, 700, 800, 900, 1000
...

Read More

###### Asked in Math and Arithmetic

### What are the multiples of a hundred?

100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, . .
.

Read More

###### Asked in Math and Arithmetic

### What are the 3 digit multiples of 100?

100, 200, 300, 400, 500, 600, 700, 800, 900

Read More

###### Asked in Camels, Exotic Farm Animals

### What is the average weight of a camel?

2000lbs.
Actually the AVERAGE weight is 500-600 kg

Read More

###### Asked in Animal Life

### What is the average weight of a landrace?

muture weight is about 500 to 600 pounds

Read More

###### Asked in Math and Arithmetic, Algebra

### What are the first ten multiples of 100?

100, 200, 300, 400, 500, 600, 700, 800, 900, 1000

Read More

###### Asked in Factoring and Multiples

### What are multiples of 100 less than 1000?

100, 200, 300, 400, 500, 600, 700, 800, 900

Read More

###### Asked in Fruits and Vegetables

### What is the average amount of seeds in a pumpkin?

The average amout of seeds in a pumpkin are between 500 and
600.

Read More

###### Asked in Factoring and Multiples

### What are the common multiples of 540 and 600?

the common multiples of 540 and 600 are 5400, 10800, 16200 and
so on.

Read More

###### Asked in Factoring and Multiples

### How many multiples of 6 are there between 100 and 600?

There are 84 multiples of six between 100 and 600.

Read More

###### Asked in Algebra

### What are the common multiples for 20 and 25?

100, 200 , 300 , 400 , 500 , 600 , 700 , 800 , 900, 1000, etc.

Read More

###### Asked in Math and Arithmetic

### What is the halfway point between 500 and 600?

The halfway point between 500 and 600 is (500 + 600) ÷ 2 =
550

Read More

###### Asked in Backdoors, Microsoft Windows, Broadband Internet

### How much does an average desktop cost?

Most are around 500-600 dollars. you should expect at least 600
for a good one.
...

Read More

###### Asked in Factoring and Multiples

### What are the multiples of 600?

Any whole number times 600 is a multiple of 600. The multiples
of 600 are an infinite set that starts with 600, 1200, 1800, 2400,
3000, 3600, 4200, 4800, 5400, 6000, and so on.
...

Read More

###### Asked in Rounding and Estimating Numbers

### Is 548 closer to 500 or 600?

548 is closer to 500 than to 600.

Read More

###### Asked in Factoring and Multiples

### What is the gcf of 500 600 and 700?

The GCF of 500, 600, and 700 is 100.

Read More

###### Asked in Nutrition, Calorie Count

### How many calories in pina colada drink?

The average pina colada has about 500-600 calories.

Read More

###### Asked in Colorado

### Where is the best powder in Colorado?

wolf creek ski aria. 500-600 inches average.

Read More

###### Asked in Math and Arithmetic

### What is the number halfway between 500 and 600?

550 is halfway between 500 and 600

Read More