How can I separate an integer into digits using for loop?
eg.
before: 123
after: 1 2 3
anyone can help me with that?
Ricky_v.s_C++ 0 Newbie Poster
andor 25 Posting Whiz in Training
Dave Sinkula 2,398 long time no c Team Colleague
andor 25 Posting Whiz in Training
Dave Sinkula 2,398 long time no c Team Colleague
andor 25 Posting Whiz in Training
Dave Sinkula 2,398 long time no c Team Colleague
andor 25 Posting Whiz in Training
Dave Sinkula 2,398 long time no c Team Colleague
Ricky_v.s_C++ 0 Newbie 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.