answersLogoWhite

0

#include <stdio.h>int main(){ int num1, num2, max; printf("Enter two positive integers: "); scanf("%d %d", &num1, &num2); max=(num1>num2) ? num1 : num2; while(1) { if(max%num1==0 && max%num2==0) { printf("LCM of %d and %d is %d", num1, num2,max); break; } ++max; } return 0;}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is the LCM of 5?

You need at least two numbers to find an LCM.Two or more numbers are needed to find the Lcm


What is th LCM of 4512?

Two or more numbers are needed to find their LCM


What is the LCM of 47814?

Two or more numbers are needed to find their LCM


Program in 'c' to find the LCM of any given five numbers?

Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.


Can you find the LCM of a prime number?

No. You can only find the LCM of at least two numbers, prime or otherwise. The LCM of any two prime numbers is their product.


How do you find out the LCM for 36?

You need at least two numbers to find an LCM.


Find the LCM of 50?

Two or more numbers are needed to find the LCM


How do you find the LCM for 24?

You need at least two numbers to find an LCM.


How do you find the LCM of 324?

You need at least two numbers to find an LCM.


How do you find two numbers if HCF and LCM are known?

The product of the GCF and the LCM of two numbers is equal to the product of the original two numbers. Multiply the GCF and the LCM. The original two numbers will be another factor pair of that total. Find the factor pair that has that GCF and LCM.


What is the LCM of 2 13?

You need at least two numbers to find an LCM.


How do you find the LCM of 208?

Two or more numbers are normally needed to find the LCM