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. · คลิก Run เพื่อดูผลลัพธ์ที่นี่