|
Represent big numbers with dots
|
|
04-03-2010, 03:45 AM
Post: #1
|
|||
|
|||
|
Represent big numbers with dots
We all know that representing numbers bigger than a million is a problem.
For example if you have : Code: 12429184782374982174Code: 12.429.184.782.374.982.174So i decided to post this simple problem. Basically you need to count string from the end and on every third position from end to post a dot. If string is smaller or equal to 3 than you just write it. Here is the code in Pascal : Code: program nums_with_dots;About copy() function you have here : http://www.pro9ramming.com/learnpascal/strings.html There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
« Next Oldest | Next Newest »
|





