Good code sample. But for() loop should be this way; for(n=1;n%a != 0 || n%b != 0;n++); return n;
Separate names with a comma.