How to write algo in c#?
I have input 123456..
I want to output in
1
12
123
1234
12345
123456
pls quecky gime my solotion..
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ajay GohilPosted Jun 11, 2020, 2:33 AM
Chris RileyPosted Sep 10, 2010, 3:46 PM
Sam HobbsPosted Sep 2, 2010, 5:50 PM
Chris RileyPosted Sep 2, 2010, 5:24 PM
Sam HobbsPosted Aug 17, 2010, 12:09 AM
There are two general solutions; either mathematical or textual. You could use an algorithm that mathematically calculates each number, such as Mike is suggesting. An alternative is to use a textual solution int e sense of concatenating digits as text. Do you understand? Which do you want to do?
Mike GoldPosted Aug 16, 2010, 11:03 PM
-Mike