Alternative way of solving

can you tell me how can we solve this problem without using break and continue ?

@Raghavsingla522
Try this

int main() {
int n ;
cin >> n;

while(n%7!=0) {
    if(n%13==0) {
        //Do nothing
    }
    else if(n%7==0){
        //break part ... do nothing again
    }
    else {
        cout << "N = " << n << endl;
    }

    cin >> n;
}


return 0;

}

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.