Write a c programe to find lcm of given numbers | c language |

rite a c programe to find the lcm of two integers ? #include void main() { int l, a, b; printf("Enter twoineger numbers: "); scanf("%d%d", &a, &b); for(l= a>b:a?b;l<=a*b;l=l+a>b:a?b) if(l%a==0&&l%b==0) break; printf("The lcm of two integers %d and %d : %d\n",a,b,l); }

Comments