Calculate the LCM of three numbers with a simple program