Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <unistd.h>
- #include <stdio.h>
- void my_putchar(char c)
- {
- write(1,&c,1);
- }
- void my_print_comb2(void)
- {
- int i[2];
- i[0] = 0;
- i[1] = 0;
- while(i[0] != 10)
- {
- while(i[1] != 10)
- {
- printf("%i%i, ",i[0],i[1]);
- i[1]++;
- }
- i[1] = 0;
- i[0]++;
- }
- }
- int main(){my_print_comb2();}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement