Advertisement
dreais

Untitled

Oct 27th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.48 KB | None | 0 0
  1. #include <unistd.h>
  2. #include <stdio.h>
  3.  
  4. void my_putchar(char c)
  5. {
  6.         write(1,&c,1);
  7. }
  8.  
  9. void my_print_comb2(void)
  10. {
  11.         int i[2];
  12.        
  13.         i[0] = 0;
  14.         i[1] = 0;
  15.         while(i[0] != 10)
  16.         {
  17.                 while(i[1] != 10)
  18.                 {
  19.                         printf("%i%i, ",i[0],i[1]);
  20.                         i[1]++;
  21.                 }
  22.                 i[1] = 0;
  23.                 i[0]++;
  24.         }
  25. }
  26. int main(){my_print_comb2();}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement