This program demonstrates the use of the continue statement inside a for loop to skip even numbers and print only odd numbers from 0 to 9. Here's how the program works:
//Printing Odd Numbers void main() { for(var i=0;i<10;i++) { if(i%2==0) continue; print("Odd Nos : $i"); } }To download raw file Click Here
Odd Nos : 1 Odd Nos : 3 Odd Nos : 5 Odd Nos : 7 Odd Nos : 9
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions