3.1 Break and Continue statement in C++ Programming | Guaranteed Placement Course | Lecture 3.1



Apni Kaksha:https://www.instagram.com/apnikaksha/
Link to the notes and questions of this video: https://drive.google.com/file/d/1-Qst-EVckIyACVxCq3BdLWZUm3epHQMd/view?usp=sharing

30 thoughts on “3.1 Break and Continue statement in C++ Programming | Guaranteed Placement Course | Lecture 3.1

  1. #include <iostream>

    using namespace std;

    int main(){
    int pocketmoney;
    cin>>pocketmoney;
    for(int date=1;date<=30;date++){
    if(date%2==0)continue;
    else {

    if(pocketmoney >=300){
    cout<<"you can go outside on date :"<<date<<endl;
    pocketmoney-=300;
    }

    }
    }
    return 0;
    }
    i think this would be the correct solution to the first problem

Leave a Reply

Your email address will not be published. Required fields are marked *