Predict output of following code:
#include stdio.h
int main()
{
int m=5,n=7,lcm;
lcm=(mn)?m:n;
while(lcm%m!=0 || lcm%n!=0)
{
lcm++;
}
printf ("lcm of m and n is %d",lcm);
return 0;
}


Posted on by