while循环

 

[c-sharp] view plain copy
 
  1. while [ condition ]   
  2. do  
  3.       程序段落  
  4. done  

 

 

 

 

for循环,特别注意i的用法

 

[c-sharp] view plain copy
 
  1. for (( i=1 ;i<=5 ; i=i+1))  
  2. do  
  3.      执行的程序  
  4. done  

 

 

循环中,是有结束循环的语句,break的 

相关文章:

  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
  • 2021-07-10
  • 2022-03-07
  • 2022-12-23
  • 2021-10-18
猜你喜欢
  • 2021-10-21
  • 2022-01-01
  • 2021-08-03
  • 2022-01-05
  • 2022-02-08
  • 2021-11-14
  • 2021-09-14
相关资源
相似解决方案