/*Muhammad Abul Hassan

                                                Id
8734 */

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now

#include /*labrary calling*/

 

 

using namespace std;

 

void print(int*input,int n)

{

 for(int
j=0;jMax_Number)/*condition*/

      Max_Number=inputj;

  }/*close the max no
in the inputs*/

 

  /*run the circle for
each of the decimal spots*/

  int exp=1;

  int *tmpBuffer=new
intn;/*temmp value*/

  while
(Max_Number/exp > 0)/*Mx is greater then zero then*/

  {

    int decimalBucket10={0};

    /*include the
occurences this decimal digit*/

    for (j
=0;j=
0;j–)

     
tmpBuffer—-decimalBucketinputj/exp%10=inputj;

    for
(j=0;j