From e6122a8cb3d309e522e0f5264a22ce5245ca8ec8 Mon Sep 17 00:00:00 2001 From: Gurirath <73177464+Gurirath@users.noreply.github.com> Date: Sun, 8 Oct 2023 00:00:48 +0530 Subject: [PATCH 1/2] SolutionByGurirath.java --- .../SolutionByGurirath.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Basic/Find LCM of Two Numbers/SolutionByGurirath.java diff --git a/Basic/Find LCM of Two Numbers/SolutionByGurirath.java b/Basic/Find LCM of Two Numbers/SolutionByGurirath.java new file mode 100644 index 000000000..3af29b958 --- /dev/null +++ b/Basic/Find LCM of Two Numbers/SolutionByGurirath.java @@ -0,0 +1,24 @@ + +/** + Write a program to print the lcm of two numbers. + */ +import java.util.*; +public class hacktoberfest4 +{ + public static void main(String args[]) + { + Scanner kb= new Scanner(System.in); + int i,n1,n2; + System.out.println("Enter two numbers to check their lcm"); + n1=kb.nextInt(); + n2=kb.nextInt(); + for(i=2;i Date: Mon, 16 Oct 2023 21:57:00 +0530 Subject: [PATCH 2/2] Update SolutionByGurirath.java --- Basic/Find LCM of Two Numbers/SolutionByGurirath.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Basic/Find LCM of Two Numbers/SolutionByGurirath.java b/Basic/Find LCM of Two Numbers/SolutionByGurirath.java index 3af29b958..03d7b4300 100644 --- a/Basic/Find LCM of Two Numbers/SolutionByGurirath.java +++ b/Basic/Find LCM of Two Numbers/SolutionByGurirath.java @@ -3,7 +3,7 @@ Write a program to print the lcm of two numbers. */ import java.util.*; -public class hacktoberfest4 +public class SolutionByGurirath { public static void main(String args[]) {