Infact to compute the LCM of multple numbers say a, b, c, d quickly is: int LCM(int a, int b, int c, int d) { int max = a; if(max <...
The correct code: for( n = 1; n%a != 0 || n%b != 0; i++); return n; :)
Separate names with a comma.