dancidenis

lab6p1

Nov 9th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int mostsigdigit(int n)
  4. {
  5. if(n/10==0)
  6. return n;
  7. else mostsigdigit(n/10);
  8. }
  9.  
  10. int main()
  11. {
  12. printf("%d", mostsigdigit(2156));
  13.  
  14. return 0;
  15. }
Add Comment
Please, Sign In to add comment