Conditionals, Loops, Break and Continue

 // Online C++ compiler to run C++ program online

#include <iostream>

using namespace std;


int main() {

    // Write C++ code here

    // int a;

    // cout<<"Enter the value for a"<<endl;

    // cin>>a;

    // if(a<23){

    //     if(a==12){

    //         cout<<"Entered 12"<<endl;

    //     }

    //     else if(a<10){

    //         cout<<"Less than 10"<<endl;

    //     }

    //     else{

    //         cout<<"A is greter than 10 or 12"<<endl;

    //     }

    // }

    // else{

    //     cout<<"A is greater than 23"<<endl;

    // }

    

    // switch(a){

    //     case 12:

    //     cout<<"This is 12"<<endl;

    //     break;

    //     case 13:

    //     cout<<"This is 13"<<endl;

    //     break;

    //     default:

    //     cout<<"Neither 12 nor 13"<<endl;

    //     break;

    // }

    

    

    

    // for(int i=0;i<11;i++){

    //     if(i==3){

    //         continue;

    //     }

    //     if(i==7){

    //         break;

    //     }

    //     printf("%d\n",i);

    // }

    

    // int i=0;

    // while(i<10){

    //     cout<<i<<endl;

    //     i++;

    // }

    int i=0;

    do{

        cout<<i<<endl;

        i++;

    }while(i==0);

    

    


    return 0;

}

Comments

Popular posts from this blog

Requests and Urllib

Python Time Zones