好习惯的养成:检查列表
【检查列表 checklist】
下面的代码中有多少个错误?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #include <stdio.h> int main(int argc, char *argv[]) { int i, n; double nc; scanf("%d", n); scanf("%d", &n) scanf("%d", &nc); scanf("%f", &nc); printf("3lf", nc); if (n>0); printf("%d", n); if (n%2=0) { printf("%d", n); } while (n>0); { printf("see the filmn"); n--; } printf(".3lf", (n+i)/2); return 0; } |