Based on gcd:
int LCM (int a, int b)
{
. int d= gcd (a, b);
. if (d==0) return 0;
. else return a/d*b;
}
That would depend on the value of C.
LCM(8, C, A) = 8*C*A.
You're supposed to do your homework yourself. (Mind you, you have to hav at least one function called main.)
LCM is the smallest number that can be evenly divided by all the numbers given in the set. For example, LCM(a, b, c, d, e) = f means f is the smallest number such that a, b, c, d, and e all divide f.
A, B and C aren't numbers, they're letters. Probably variables. Without knowing what numbers they represent, we can't calculate their LCM.
lcm(a,b,c,d) = lcm(lcm(a,b,c),d) = lcm(lcm(a,b),lcm(c,d))
If C is co-prime with 6 and with 7, then LCM(6, 7, C) = 42*C If not, the answer depends on the value of C.
Use a program called visual studio express. Its made by Microsoft and you can program in all kinds of languages. C , C+ etc
how can create a attendece sheet in c language
That would depend on the value of C.
With lots of hard work.
If they have no common factors other than 1, the LCM is their product.
The C stands for Common.
That depends on the values of A, B and C.
#include<stdio.h> #include<conio.h> void lcm(int m,int n) { for(i=1;i++) { if(i%m==0&&i%n==0) return i; } } void main() { clrscr(); int a,b; a=19;b=20; printf("lcm is %d",lcm(a,b)); getch(); }
the features of a C program
Yes, to make a program in Turbo C for a mini computer to have a dual core processor.