Answer:
Explanation:
The following loop code is written in Java and asks the user for the 6 integer numbers as mentioned in the question and sums them up. Finally putting them into a variable named total and printing it out.
int total = 0;
for (int x = 0; x < 6; x++) {
Scanner in = new Scanner(System.in);
System.out.println("Enter an integer: ");
total += in.nextInt();
}
System.out.println("Your total is: " + total);