Jump to content

Help on adding digits


d_r_sriram

Recommended Posts

Hi Everybody-I have to implement a code that adds up 8 digits amongst itself till it doesnt get reduced to a single digit. for ex : i have to add 31031976 as 3+1+0+3+1+9+7+6=30=3+0=3.the input wud be always of 8 digits.can someone be kind enof to share the code..thanks in advance-Sriram

Link to comment
https://forums.phpfreaks.com/topic/155151-help-on-adding-digits/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.