Write a c program to print the lcm of two numbers

Write a c program to print the lcm of two numbers. It is the basic program mathematical programming for new beginners to understand the c program

#include<stdio.h>
int main()
{
int number1, number2, mp;
printf("Enter the numbers");
scanf("%d %d", &number1, &number2);
if(number1>number2)
mp=number1;
else
mp=number2;
while(1)
{
if((mp%number1==0) && (mp%number2==0))
break;
else
mp++;
}
printf("\nLCM(%d,%d) = %d", number1, number2, mp);
return 0;
}

Enter the numbers 45                                                 

67                                             

LCM(45,67) = 3015