fork download
  1. #include <stdio.h>
  2.  
  3. int main () {
  4.  
  5. /* local variable definition */
  6. int a = 10;
  7.  
  8. /* while loop execution */
  9. while( a > 0 ) {
  10. printf("value of a: %d\n", a);
  11. a--;
  12. }
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
value of a: 10
value of a: 9
value of a: 8
value of a: 7
value of a: 6
value of a: 5
value of a: 4
value of a: 3
value of a: 2
value of a: 1