Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <unistd.h>
- int my_print_comb(void)
- {
- int a = 48;
- int b = 49;
- int c = 50;
- while (a!=56){
- while (b!=57){
- while (c!=58){
- write(1, &a, 1);
- write(1, &b, 1);
- write(1, &c, 1);
- if (a==55)
- write(1, &"\n", 1);
- else
- write(1, ", ", 2);
- c=c+1;
- }
- b=b+1;
- c=b+1;
- }
- b=a+1;
- a=a+1;
- }
- }
- int main()
- {
- my_print_comb();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement