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