Lcm code is giving error

here is my code, please look into it