23 while loop


  • syntax
    while ( condition )
    {
        /* statement */
    }

  • ควรตรวจดูให้แน่ใจว่า condition จะไม่เป็น infinite loop หรือการวนลูปที่ไม่มีสิ้นสุด


No comments:

Post a Comment