|
|
back to boardPlease, help.Where is my mistake? #include <stdio.h> int x[101]; void main() { int n=0,m=0,i=0,j=0,k=0; scanf("%d", &n); scanf("%d", &m); i=0; for (i=0;i<n;i++) scanf("%d", &x[i]); i=0; m=2; while ((i<n)&&(k<n)) { j=i; while (j<n) { printf("%4.d",x[j]); j=j+m; k++; } printf("\n"); i++; }
} |
|
|