aayushi-droid / Edabit-Solutions

Edabit Solutions using Cpp(C++)
MIT License
39 stars 154 forks source link

Persistence #339

Closed jatinAgarwala closed 3 years ago

jatinAgarwala commented 3 years ago

Before jumping into Pr first comment for assign.

Problem statement : The additive persistence of an integer, n, is the number of times you have to replace n with the sum of its digits until n becomes a single digit integer.

The multiplicative persistence of an integer, n, is the number of times you have to replace n with the product of its digits until n becomes a single digit integer.

Create two functions that take an integer as an argument and:

Return its additive persistence.
Return its multiplicative persistence.

Probelm Link : https://edabit.com/challenge/vHvu4Wis8RhmQbwXm Choose one Cateorgy - Very Easy, Easy, Medium, Hard, Very Hard, Expert question category : Very Hard


Before submitting a PR please Check some details.

This repository is vaild for HacktoberFest2020

Read before making PR - How to contribute on Github Good Luck,

jatinAgarwala commented 3 years ago

Please assign this to me.