fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int number;
  5.  
  6. printf("กรุณาใส่เลขจำนวนเต็ม: ");
  7. scanf("%d", &number); // รับค่าจากผู้ใช้
  8.  
  9. printf("ค่าที่คุณป้อนคือ: %d\n", number); // แสดงผล
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
กรุณาใส่เลขจำนวนเต็ม: ค่าที่คุณป้อนคือ: 0