I want to get the digits of a number the user entered without using arrays.
Is it possible?
Thank you very much.
skiabox
0
Light Poster
Recommended Answers
Jump to PostIs it possible?
Yes, it is possible.
Post some code and mod me up and we'll talk about how you go about doing it.
Jump to PostYeah, 10 digit ints are getting pretty high up there. A 32-bit signed integer can hold a maximum value of 2^31 - 1 = 2147483647. As you can see, this is indeed a 10-digit number. My hypothesis is that if you try to give your program anything bigger than that …
All 7 Replies
AuburnMathTutor
37
Junior Poster
skiabox
0
Light Poster
skiabox
0
Light Poster
AuburnMathTutor
37
Junior Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Luckychap
68
Posting Pro in Training
kings_mitra
-1
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.