Tuesday 7 July 2020

Break Statement In C++

Break Statement In C++

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

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

}


return 0;

}

No comments:

Post a Comment