Question: modify this program to complete the same tasks by using do-while loop and foroop Import java.util.Scanner; public class SumAndAverage {public static void main(String[]args){Scanner scan =
modify this program to complete the same tasks by using "do-while "loop and "for"oop
Import java.util.Scanner; public class SumAndAverage {public static void main(String[]args){Scanner scan = new Scanner(System.in); System.out.print("Enter positive numberN:"); int n = scan.nextInt(); while (n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
