Question: 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

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 ......

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!