Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int wynik=0, p=1;
- while (liczba>0) {
- wynik=wynik+p*(liczba%10);
- liczba=liczba/10;
- p=p*6;
- }
- return wynik;
- }
- int main()
- {
- int l;
- cin>>l;
- cout<<dec_l(l);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement