-2
A
回答
4
會幫助,如果你提到的這是什麼語言,但可能你應該使用>=
代替=>
2
if (u <= 100) charge = u * 1.35; else if (u >= 100 && u <= 200)
0
else if(u=>100&&u<=200)
^^-- here
不應指示部分是>=
?此外,如果這是代碼的完整性,那麼您會錯過else if
來採取行動...
if (...) {
...
else if (...) {
you're missing this part here
}
相關問題
- 1. Yii - if&else if語句在視圖文件中出現錯誤
- 2. 在我的if else語句中出現語法錯誤
- 3. if-else語句錯誤
- 4. arduino else if語句錯誤
- 5. Python,if-else語句錯誤
- 6. If-else語句錯誤'else'without'if'
- 7. 錯誤:else if語句可
- 8. if else語句錯誤
- 9. If和Else語句的語法錯誤
- 10. if/else語句中的語法錯誤
- 11. if-else Javascript語句的語法錯誤
- 12. if/else語句中的語法錯誤
- 13. if else if else語句(JS)
- 14. IF ELSE語句輸出
- 15. 名稱錯誤if/else語句評價
- 16. if/else語句中的錯誤MySQL
- 17. Delphi 7 else if語句錯誤?
- 18. 簡單的if/else語句錯誤
- 19. awk if-then-else語句錯誤
- 20. Java錯誤:不是語句if-else
- 21. PHP if else語句錯誤檢查
- 22. if/else語句
- 23. If else語句
- 24. if else語句
- 25. if-else語句
- 26. If/else語句
- 27. python中的IF-ELSE語句的else語法錯誤
- 28. 現在使用if else語句
- 29. 如何在此if/else語句中添加if/else語句?
- 30. jquery if else語句
哪種編程語言?它顯示了什麼錯誤?請編輯您的問題,以便它回答這些問題。 (爲編程語言添加標籤,並將錯誤消息附加到您的問題。)謝謝! – stakx 2012-08-11 13:24:26
@stakx:用戶上次看到...「2011年5月1日。」我不認爲他會回來...... =) – 2012-08-11 13:28:54
@David:我認爲仍然值得指出問題的錯誤(例如,在另一個新用戶絆倒這個問題的情況下;他們應該看到預期的情況在SO上的問題)。 – stakx 2012-08-11 13:32:02