C 添加HTML表的标记

C 添加HTML表的标记,c,C,我想让5tab6tab7看起来像457,但457看起来像457…我怎么做 #include <stdio.h> #include <string.h> int main () { char str[1000]; while(scanf("%s",str)) { printf("<tr>"); printf("<td>%s<td>", str); printf("</tr>"); } #包括 #

我想让5tab6tab7看起来像
457
,但457看起来像
457
…我怎么做

#include <stdio.h>
#include <string.h>

int main ()
{
char str[1000];


while(scanf("%s",str)) {
    printf("<tr>");
    printf("<td>%s<td>", str);
    printf("</tr>");
}
#包括
#包括
int main()
{
char-str[1000];
while(scanf(“%s”,str)){
printf(“”);
printf(“%s”,str);
printf(“”);
}
像这样做

printf("<td>%s &nbsp;</td>", str);
printf(“%s”,str);

Html标签在控制台上使用
C
?这个问题不清楚,请详细说明。更改了它………更改后可能会重复我得到的
7 6 9