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