N individual in a circle, from the first person counted count to M ones; Starting with the next person to count off again, count to M ones; ... Of output, in turn, the cyclomatic number, N, M by keyboard input,
Please advise me the following code went wrong?
#include
Int main () {
Int m, n, a=0;
The scanf (" % d % d ", & amp; N, & amp; M);
for(int i=1; 2> 1; I++) {
+;
If (I % n==1 and i> N) {
A=1;
}
If (I % m==0) {
Printf (" % d ", a);
N=n - 1;
}
If (n==0) {
break;
}
}
}