Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void print_int(int n)
- {
- if(n < 0)
- {
- putchar('-');
- n = -n;
- }
- if((n-n%10)/10 > 0)
- print_int((n-n%10)/10);
- putchar(n%10 + '0');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement