输出对角线(输出格式控制)
生活随笔
收集整理的這篇文章主要介紹了
输出对角线(输出格式控制)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?
#include <stdio.h>int main(void) {int i;int x; /* 瑕佹樉紺虹殑琛屾暟 */printf("hello world");scanf("%d", &x);for (i = 1; i <= x; i++)printf("%*d\n", i, i % 10);return 0; }輸出
hello world6 123456?
轉載于:https://www.cnblogs.com/sea-stream/p/11037612.html
總結
以上是生活随笔為你收集整理的输出对角线(输出格式控制)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: VS Code 自动修改和保存 代码风格
- 下一篇: 每周分享五个 PyCharm 使用技巧(