Code:
#include <stdio.h>
char format[] = "L.C.M = %d\n";
int a,b;
void main(){
printf("Enter the first number ");
scanf("%d",&a);
printf("Enter the second number ");
scanf("%d",&b);
__asm{
xor eax, eax
myLoop:
add eax, a
mov ebx, b
mov ecx, eax
div ebx
cmp edx, 0
mov eax, ecx
jnz myLoop
push eax
mov eax, offset format
push eax
call printf
pop ecx
pop ecx
}
}

