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