用c语言输出Name Counter -------------- John 6042 Sally 10387 Tom 952 -------------- Total 17381
时间: 2023-11-23 09:07:13 浏览: 123
以下是用C语言输出Name Counter的代码:
```c
#include <stdio.h>
int main() {
printf("Name\tCounter\n");
printf("John\t6042\n");
printf("Sally\t10387\n");
printf("Tom\t952\n");
printf("Total\t17381\n");
return 0;
}
```
输出结果为:
```
Name Counter
John 6042
Sally 10387
Tom 952
Total 17381
```
阅读全文