|   |  | 
| ปรับปรุง : 2564-07-13 (ปรับแฟ้ม) | 
| datatype | TurboC | Programming | 
| // array int, for<br>รับค่าลงอาเรย์แบบ int และนำมาแสดง โดยใช้ for ช่วย
/* http://www.thaiall.com/tc */
#include <iostream.h>
#include <conio.h>
void main()
{
  clrscr();
  int x[3];
  for (int i=0;i<3;i++) cin >> x[i];
  for (i=0;i<3;i++) cout << x[i] << "\n";
  getch();
}
 | 
| 
 | 
| "ไม่เริ่มต้นในวันนี้ จะไม่มีทางสำเร็จในวันพรุ่ง" โดย โยฮัน ว็อล์ฟกัง ฟ็อน เกอเทอ |