#include <stdio.h>
int main(void)
{
unsigned n = 15; // multiplier divide value
unsigned i, j; // worked variables
unsigned two = 0;
unsigned five = 0;
i = 6;
while(n!=1) {
i--;
while((n%i==0)) {
if(i==2) two++;
else if(i==5) five++;
n/=i;
}
printf("* step [%d] done...\n", i);
}
if(i==2) i/=i;
if(i==5) i/=i;
printf("\ntwo: 2^%d", two);
printf("\nfive: 5^%d", five);
printf("\nreduce: *%d", i);
return 0;
}