#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    7
    Rep Power
    0

    How to get 20 digits decimal ?


    Hi to all,
    how to get 20 digits decimal number using String?After get 20 digits decimal number i have to separate as 8 digits ,6 digits ,6 digits,(8+6+6 = 20 digits) and store in separate strings ?????
    Example 20 digit number: 12345678914725836945
    A=12345678(8 digits)
    B=914725(6 digits)
    C=836945(6 digits)
    thanks in advance..
  2. #2
  3. Contributing User

    Join Date
    Aug 2003
    Location
    UK
    Posts
    5,116
    Rep Power
    1803
    It is entirely unclear what your question is. :confused:

    Are you asking how to split a 20 character string into three strings of fixed length, or are you asking how to form a 20 character string from the the strings A, B, C, or something else altogether?

    Perhaps your current attempt in code might clarify what you are trying to do.
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Location
    India
    Posts
    95
    Rep Power
    4
    get 20 digit decimal means u want it using scanf????
    then u take input in loop.
    to divide it u can use scrncpy function.

IMN logo majestic logo threadwatch logo seochat tools logo