1 ответ
+ 4
Lương Trung Hiếu I see two problems that prevent it from compiling and running. The scanf arguments in line 6 are all inside the format string.
Change from this:
scanf("%d%d%d,&KT,&GK,&CK");
To this:
scanf("%d%d%d", &KT,&GK,&CK);
Also, line 4 and line 9 have duplicate declarations for variable TB. Remove line 4.
That should allow the program to run. I am unclear whether the logic does what you intend. Let us know if you need further help.