📜  cpp 中的 for 循环 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:33.142000             🧑  作者: Mango

代码示例2
for (int i = 0; i < 10; i++){
  //Do something as long as i is less than 10, 
  //In that case it will loop 10 times
  //use break; to restart the loop whenever you want to cancel the loops.
  cout << i;
  
  //at the end, remember i will be increased by 1.
}

//output 0123456789