From 4c78a0fdc30ad17577f7fb1f93a60e97764153e2 Mon Sep 17 00:00:00 2001 From: abdibogor <35481404+abdibogor@users.noreply.github.com> Date: Sat, 9 Mar 2019 13:30:50 +0200 Subject: [PATCH] Update 21_javaBeginners.java --- Java_Beginners/21_javaBeginners.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Java_Beginners/21_javaBeginners.java b/Java_Beginners/21_javaBeginners.java index bd28248..44540af 100644 --- a/Java_Beginners/21_javaBeginners.java +++ b/Java_Beginners/21_javaBeginners.java @@ -6,7 +6,7 @@ public static void main(String args[]){ int total = 0; int grade; int average; - int counter; + int counter = 0; while (counter < 10){ grade = input.nextInt(); @@ -16,4 +16,4 @@ public static void main(String args[]){ average = total/10 System.out.println("Your average is "+ average); } -} \ No newline at end of file +}