Kenapa kalau di do while ,pada while harus diakhiri dengan tanda titik koma sedangkan di while tidak | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Kenapa kalau di do while ,pada while harus diakhiri dengan tanda titik koma sedangkan di while tidak

23rd Jan 2018, 4:35 AM
Agis Tian
2 Answers
+ 7
Because the C/C++ syntax says so.
23rd Jan 2018, 6:24 AM
Hatsy Rei
Hatsy Rei - avatar
+ 6
[Bahasa Indonesia] Memang seperti itu syntax-nya, semua bahasa pemrograman dengan pola syntax turunan C sepertinya juga menggunakan syntax seperti itu (PHP contohnya). [English] That's how it is dictated by the syntax, probably all C descendants programming languages applies the same syntactic (PHP for example).
23rd Jan 2018, 7:41 AM
Ipang