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