Tuesday 7 July 2020

Continue Statements in C++

Continue Statements in C++

Code:
#include<iostream>
using namespace std;
int main(){
for(int i=0;i<10;i++){

if(i==5){
continue;
}
if(i==7){
continue;
}
cout<<i<<endl;

}


return 0;
}

No comments:

Post a Comment