The break statement can also be used to jump out of a loop.
(break লুপ থেকে বের হওয়ার জন্য ব্যবহার করা হয়।)
Output:
The while loop loops through a block of code as long as a specified condition is true.
syntax of while loop
Output:
The continue statement breaks one iteration (in the loop), if a specified condition occurs, and continues with the next iteration in the loop.
(continue statement নিদিষ্ট সংখ্যা ছারা আর সব print করার জন্য ব্যবহার করা হয়)
Output: