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