there a N Book ,and M
there a N Book ,and M<N locations in a library .There are different ways in which these N books can be arranged in the location available.We will assume that the remaining book are put on the table The librarian ,Miss Boared-with-it-all goes about arranging these books in different ways all the time. You known,just to passthe time.Then she gets this bright idea to count the number the number of different ways that she can arrange all these books ,so that she hass something coll to fill into her appraised report.However , when she finally does computerthis number and starts to write it down ,she gets so lethargic she skips writing the trailing zero digits in the number .So now she wants you to WAP in java to count the number of digits she's skipped .Forexample 12340012000 ,then she only writes 12340012, i.e she skips writing the last three digit (three zeroes). So given N and M ,what's the number of digits that she does not write down? Input n M (two integer,single space separated) Output :P (single integer,representing the number of skipped digits
Step by step
Solved in 3 steps with 1 images