Problem :add all digits of a number
given a no. ,say, long int num ,to b added
solution that can b tried:
for ( ; num; sum += num%10,num /=10 );
bye4 now
gd
Do you Yahoo!?
Send holiday email and support a worthy cause. Do good.
To unsubscribe : [EMAIL PROTECTED]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4958
Please do not reply to this message via email. (more info)
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
