Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class J07SumAverage
- {
- public static void main(String[] args )
- {
- Scanner console = new Scanner(System.in);
- int num, numbers = 1, inc;
- int sum, average, calculation, max, loop, value;
- System.out.print("Enter Max numbers: ");
- max = console.nextInt();
- System.out.println();
- value = 0;
- for (loop = 1;loop < max + 1;loop++)
- {
- System.out.print("Enter value " + loop + ": ");
- value = console.nextInt();
- }
- } // main
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement