The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 399 Weeks Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Bunny and Lucky are good friends. One day Bunny decided to play a game with Lucky. So he gave two numbers (a and b) and ask her to find the multiplication of a and b. She is good at mathematics, so she multiplied them and gave the answer within seconds. So he decided to add some more spicy to the problem. So he asked her to add all digits in the result until the resultant will be a single digit. Let’s consider a = 11 and b = 8, 11X8 = 88 from the result 8+8 = 16 then for 16, 1+6 = 7. So finally the answer is 7. But it is difficult her to find the vale for larger numbers.
So help her in finding the single digit value.
Â
Input description.
Â
Â
Should contain all the constraints on the input data that you may have. Format it like:
Â
Input: 3 2 5 8 8 8 11 Output: 1 1 7
Â
Example case 2: 8*8 = 64 from that 6+4 = 10 the 1+0 = 1, so the answer is 1.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll