What is the difference between these two
#include
using namespace std;
int main(){
int i = 1;
while(i<=10){
if(i==5){
break;
}
cout<<i;
i=i+1;
}
return 0;
}
and
#include
using namespace std;
int main(){
int i = 1;
while(i<=10){
cout<<i;
if(i==5){
break;
}
i=i+1;
}
return 0;
}