সহকারী অধ্যাপক
১৪ মে, ২০২৪ ০৭:৩৮ পূর্বাহ্ণ
সহকারী অধ্যাপক
ধরনঃ সাধারণ শিক্ষা
শ্রেণিঃ দ্বাদশ
বিষয়ঃ তথ্য ও যোগাযোগ প্রযুক্তি
অধ্যায়ঃ চতুর্থ অধ্যায়
You have already seen the break statement used in an earlier chapter of this tutorial. It was used to "jump out" of a switch statement.
The break statement can also be used to jump out of a
loop.
This example jumps out of the for loop when i is equal to 4: