From c569384c8a381e6f0bdac47bfbb2b20739535443 Mon Sep 17 00:00:00 2001 From: Andrew Shumway Date: Wed, 29 Sep 2021 11:23:19 -0600 Subject: [PATCH] complete objective7lab2 --- Labs/Objective7Lab2.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Labs/Objective7Lab2.java diff --git a/Labs/Objective7Lab2.java b/Labs/Objective7Lab2.java new file mode 100644 index 0000000..cd297be --- /dev/null +++ b/Labs/Objective7Lab2.java @@ -0,0 +1,12 @@ +public class Objective7Lab2 { + public static void main(String[] args) { + int counter = 0; + + while(counter <= 20) { + + System.out.println(counter); + counter = counter + 1; + + } + } +}