![]() |
|
#1
|
|||
|
|||
Calculate Sum of each position of an integerHello Everybody
I would greately appreciate if Somebody could tell me how to calculate Sum of each position of an integer in C like if there is 123 then it should give 1+2+3=6 and similary if it is 1237838 then it should give 1+2+3+7+8+3+8=32 Thank you. Dave |
|||
|
#2
|
|||
|
|||
Re: Calculate Sum of each position of an integerCPP / C++ / C Code:
Last edited by LuciWiz : 19-Feb-2007 at 11:34.
Reason: Please insert your C/C++ code between [cpp] & [/cpp] tags
|
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fortran problem... | Justin Fox | Miscellaneous Programming Forum | 6 | 24-Oct-2006 16:30 |
| Check your keyword position using Google API | jrobbio | Search Engine Optimization Forum | 5 | 20-Jul-2006 16:29 |
| Help with integer inputs | jrl134 | C++ Forum | 1 | 20-Feb-2005 01:36 |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 11:53 |
| there are some errors but where?? | small_ticket | C Programming Language | 6 | 18-May-2004 14:10 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The