// This tut contains break and continue statemenets
#include<iostream>
using namespace std;
int main(){
// for (int i = 0; i < 40; i++)
// {
// /* code */
// if(i==2){
// break;
// }
// cout<<i<<endl;
// }
for (int i = 0; i < 40; i++)
{
/* code */
if(i==2){
continue;
}
cout<<i<<endl;
}
return 0;
}
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.