program: Write a program that determines persistence value of given number.
Input 2 digit positive integer number through keyboard.e.g. persistence value of 49 is 3. 49,4*9=36, 3*6=18 , 1*8=1.
e.g. persistence value of 77 is 4. 77,7*7=49, 4*9=36, 3*6=18 , 1*8=1.
source file name: persitval.C
0 Comments
Post a Comment