given a string of integers, write a program to generate an output string as follow 1)from the input ints, filter the integers that are perfect squeares 2)for each perfect square obtained from step 1 find its factorial, if the factorial of the numb is trailing by zeros, three digits present before the trailing zeros shoud be appended to output string if not trailing by zeros append last three digits to output string if there is ad receding zero it is ignored a) if the num is 2 it does not have any trailing zeros and there is only on digit in it append 2 output b) if the num is 5 it has one trailing zero and before the trailing zero there are only two present so append 12 to output d) if the num is 9 it has one trailing zero before railing zero there are 5 digits so append e) if the num is 12 then ......
given a string of integers, write a
1)from the input ints, filter the integers that are perfect squeares
2)for each perfect square obtained from step 1 find its factorial, if the factorial of the numb is trailing by zeros, three digits present before the trailing zeros shoud be appended to output string if not trailing by zeros append last three digits to output string if there is ad receding zero it is ignored
a) if the num is 2 it does not have any trailing zeros and there is only on digit in it append 2 output
b) if the num is 5 it has one trailing zero and before the trailing zero there are only two present so append 12 to output
d) if the num is 9 it has one trailing zero before railing zero there are 5 digits so append e) if the num is 12 then ......
Step by step
Solved in 2 steps with 2 images