From 916787a7ad7f661d51257b120e1f472173214b71 Mon Sep 17 00:00:00 2001 From: Harshit Varshney <56967086+harshit774@users.noreply.github.com> Date: Thu, 21 Oct 2021 12:33:52 +0530 Subject: [PATCH 1/3] Update ATM Program --- ATM Program | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ATM Program b/ATM Program index 1f3b517..0be5ed9 100644 --- a/ATM Program +++ b/ATM Program @@ -1,10 +1,7 @@ //import required classes and packages -import java.util.Scanner; - -//create ATMExample class to implement the ATM functionality +import java.util.Scanner; public class ATMExample { - //main method starts public static void main(String args[] ) { //declare and initialize balance, withdraw, and deposit From a4869180641fba622eaea63a449bd3333a1a49dd Mon Sep 17 00:00:00 2001 From: Harshit Varshney <56967086+harshit774@users.noreply.github.com> Date: Thu, 21 Oct 2021 12:35:55 +0530 Subject: [PATCH 2/3] Update A_Beautiful_Matrix.java --- A_Beautiful_Matrix.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/A_Beautiful_Matrix.java b/A_Beautiful_Matrix.java index a8e689c..ebb1631 100644 --- a/A_Beautiful_Matrix.java +++ b/A_Beautiful_Matrix.java @@ -8,10 +8,8 @@ public static void main(String args[]) System.out.print("Enter the number to check: " ); num=sc.nextInt(); while(num>0) -{ -//finds the last digit of the number +{ lastdigit=num%10; -//adds last digit to the variable sum sum=sum+lastdigit; //calculates the product product=product*lastdigit; From 2cdf9e799069f62a7314889764dcf807f06abde8 Mon Sep 17 00:00:00 2001 From: Harshit Varshney <56967086+harshit774@users.noreply.github.com> Date: Thu, 21 Oct 2021 12:59:55 +0530 Subject: [PATCH 3/3] Update Duck Number --- Duck Number | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duck Number b/Duck Number index 32aed56..2fa1915 100644 --- a/Duck Number +++ b/Duck Number @@ -3,7 +3,7 @@ import java.util.*; import java.io.*; import java.util.Scanner; public class DuckNumberExample { - +//hi // create checkNumber() method that returns true when it founds number Bu public static boolean checkNumber(int number) {