The code is working to some point.Here is the code.Its an assignment and i have to forward it in 5 hours.
#include <stdio.h>

char format[] = "L.C.M = %d\n";
int a,b;

void main(){

	printf("Enter the first number ");
	printf("Enter the second number ");

       xor eax, eax
	   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


Last edited by shabbir; 3Apr2007 at 12:25.. Reason: Code formatting.