/home/caleb/ASDV-Java/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/TestContinue2.java |
nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
package lab12_calebfontenot;
public class TestContinue2 {
public static void main(String[] args) {
int sum = 0,
number;
for (number = 0; number < 20; number++) {
sum += number;
if (number == 10 || number == 11) {
continue;
}
}
System.out.println(number);
System.out.println("The sum is " + sum);
}
}