Interviews Questions, Algorithms, Aptitude, C Interview Program, C Theory Question, Aptitude Tricks, Test Series,

Showing posts with label LCM and GCD. Show all posts
Showing posts with label LCM and GCD. Show all posts

Monday, 13 May 2019

LCM and GCD

Question:

CASE 1:
Write a program to find LCM of two numbers

CASE 2:
Write a program to find GCD of two numbers

Solution:

CASE 1:













CASE 2: