fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main()
  4. {
  5. int x=0,a;
  6. while(x++ < 5)
  7. {
  8. a=x;
  9. printf("a = %d \n",a);
  10. int x=3;
  11. printf("x = %d \n",x);
  12. x+=2;
  13. }
  14. printf("\n\n%d",x);
  15. return 0;
  16. }
  17.  
  18.  
  19.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
a = 1 
x = 3 
a = 2 
x = 3 
a = 3 
x = 3 
a = 4 
x = 3 
a = 5 
x = 3 


6