SHARE
TWEET

Untitled

a guest Oct 21st, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void print_int(int n)
  2. {
  3.     if(n < 0)
  4.     {
  5.         putchar('-');
  6.         n = -n;
  7.     }
  8.  
  9.     if((n-n%10)/10 > 0)
  10.         print_int((n-n%10)/10);
  11.  
  12.     putchar(n%10 + '0');
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top