Posts

Showing posts with the label continue statement

Odd numbers by continue statement | To print odd numbers by continue statement

// This is written by "Syed Ali Haider" // Student of Havjery University // Don't remove these line for legal use // Upload on Let's programming by (CEO) // For contact // key_to_programming@yahoo.com # include <iostream> using namespace std; void main () {               for ( int i=1; i<=10; i++)                           if (i==2 || i==4 || i==6 || i==8|| i==10)                     continue ;              else                     cout<<i<<endl; } // This is written by "Syed Ali Haider" // S...