Advertisement
thenewboston

C Programming Tutorial - 28 - How to Make a Table

Aug 22nd, 2014
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <ctype.h>
  4. #include <string.h>
  5. #include <math.h>
  6.  
  7. int main()
  8. {
  9.     int columns;
  10.     int rows;
  11.  
  12.     for(rows=1; rows<=6; rows++){
  13.  
  14.         for(columns=1; columns<=4; columns++){
  15.             printf("%d ", columns);
  16.         }
  17.  
  18.         printf("\n");
  19.     }
  20.  
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement