Exercise#5: write a Java program using the while loop to find the sum and the average of all the odd integers 1, 3, 5, 7, 499. Display the sum and the average. Show transcribed image text Exercise#5: write a Java program using the while loop to find the sum and the average of all the odd integers 1, 3, 5, 7, 499. Display the sum and the average.
Answer
public class SumOfOdd
OR
OR