C语言while循环

#include stdio.h// C语言while循环int main () {/* local variable definition */int a = 10;/* while loop execution */

编程学习网为您整理以下代码实例,主要实现:C语言while循环,希望可以帮到各位朋友。

#include <stdio.h>
// C语言while循环
int main () {

   /* local variable deFinition */
   int a = 10;

   /* while loop execution */
   while( a < 20 ) {
      printf("value of a: %d\n", a);
      a++;
   }

   return 0;
}

本文标题为:C语言while循环

上一篇: C语言逻辑运算符
下一篇: C语言for循环

基础教程推荐