let mut check =  0;
while check < 11{
  println!("Check is : {check}");
  check+=1;
  println!("After incrementing: {check}");
  if check == 10{
    break; // stop while
  }
}
Comments