|
 |
ช่วยทำการบ้านภาษา C++ ให้หน่อยครับ เขียนมาจะทั้งคืนแล้วทำไม่ได้ซะที |
|
 |
|
|
 |
 |
|
คงจะใช้แค่พวก if...else ธรรมดาครับ
01. #include <iostream>
02. using namespace std;
03.
04. int main ()
05. {
06.
07. int a = 100;
08.
09.
10. if ( a < 20 )
11. {
12.
13. cout << "a is less than 20;" << endl;
14. }
15. else
16. {
17.
18. cout << "a is not less than 20;" << endl;
19. }
20. cout << "value of a is : " << a << endl;
21.
22. return 0;
23. }
|
 |
 |
 |
 |
Date :
2014-11-27 09:49:44 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 01
|