From 534d08b3e9a1d6a71db384afc67ae872513846c8 Mon Sep 17 00:00:00 2001 From: saumyaa27 Date: Sun, 13 Oct 2019 00:41:44 +0530 Subject: [PATCH] added changes --- lcm_of_2numbers.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lcm_of_2numbers.c b/lcm_of_2numbers.c index 2293483..76c7e4c 100644 --- a/lcm_of_2numbers.c +++ b/lcm_of_2numbers.c @@ -2,14 +2,14 @@ include int hcf(int,int); int main() { -int a,b,z,c,d,lcm; -printf("enter 2 nos."); +int a,b,g,c,d,lcm; +printf("enter 2 numbers"); scanf("%d %d",&a,&b); -z=hcf(a,b); -c=a/z; -d=b/z; -lcm=c*d*z; -printf("the lcm of nos is %d",lcm); +g=hcf(a,b); +c=a/g; +d=b/g; +lcm=c*d*g; +printf("the lcm of numbers is %d",lcm); return 0; } int hcf(int a, int b)