Forums: » Register « |  Free Tools |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |

New Free Tools on Dev Shed!

#1
March 14th, 2013, 06:35 AM
 Kayalvizhibe
Registered User

Join Date: May 2012
Posts: 7
Time spent in forums: 2 h 18 m 39 sec
Reputation 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)

#2
March 14th, 2013, 06:48 AM
 clifford
Contributing User

Join Date: Aug 2003
Location: UK
Posts: 4,978
Time spent in forums: 1 Month 4 Days 5 h 40 m 28 sec
Reputation Power: 1801
It is entirely unclear what your question is.

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.

#3
March 16th, 2013, 11:40 AM
 eramit2010
Contributing User

Join Date: Mar 2013
Location: India
Posts: 95
Time spent in forums: 2 Days 18 h 10 m
Reputation Power: 3
get 20 digit decimal means u want it using scanf????
then u take input in loop.
to divide it u can use scrncpy function.

 Viewing: Dev Shed Forums > Programming Languages > C Programming > How to get 20 digits decimal ?