Print a number · 打印一个数字
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 此页面需较新浏览器(支持 SharedArrayBuffer)。请升级 Chrome、Edge、Firefox 或 Safari 至最新版本。
English
Print a number
To print a number, use %d and put the number after the comma: printf("%d\n", 7);.
中文
打印一个数字
要打印数字,用 %d,把数字放在逗号后面:printf("%d\n", 7);。
Print the number 7. %d is the slot for a whole number. · 打印数字 7。%d 是整数的占位符。
Click Run to see the output here. · 点击“运行”查看此处输出。