Gagan G Saralayagagang.hashnode.dev·Mar 5, 2024C program to find the GCD and LCM using pointersHere is a C program to find the Greatest common devisor and the Least common multiple of a number. #include<stdio.h> void gcdlcm(int num1,int num2,int*gcd,int*lcm) { int i,max; max=(num1>num2)?num1:num2;//Simple way of saying if num1 is great...7daystreakAdd a thoughtful comment1 commentTop comments--·Mar 5, 2024Mar 5, 2024lcm is wrong lcm = (num times num2) / (**gcd) ·Reply