SHARE
TWEET

Untitled

a guest Jan 17th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2.  
  3. int dec_to_sen(int n, int liczba){
  4.     int n_sen=0;
  5.     n_sen+=n%7*liczba;
  6.     if(n==0)
  7.         return 0;
  8.     return n_sen + dec_to_sen(n/7, liczba);
  9. }
  10.  
  11. int main(){
  12.     printf("%d", dec_to_sen(13,1));
  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
 
Top