Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to write a Markov algorithm that converts numbers such as ||| (3) ||||| (5) and so on into, decimal numbers

So I'm studying algorithms for fun and I came over this problem . The tasks says to do it with numbers 1 - 10.  It is pretty easy, but what about bigger ones (like 3000 and so on, for example). This probably doesn't have any practical use, but I really wanna know how it is done

What I have tried:

I've done it for 1-9, but can't get the idea for bigger numbers
Posted
Updated 2-Feb-23 19:35pm
Comments
CPallini 3-Feb-23 2:13am    
Post your current algorithm, maybe someone here could help you to generalize.
Graeme_Grant 3-Feb-23 3:14am    

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900