Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions