我想直接填“6 8 10”但是出错了。请教一下大家printf 后面要怎么填呢?谢谢!
printf(" 6 8 10");
%4d 好像是占4个位置吧 输出“ 6 8 10”这样应该可以吧 ,不够4格用空格替代
那就直接按照程序的输出 printf("%4d%4d%4d", 6, 8, 10);