/* answer to question 21 */ #include #include void main(void) { int num, count2=0, count3=0 ; printf("Insert a number:"); scanf("%d",&num); while(num % 2 == 0) { num=num/2; count2++; } while (num % 3 == 0) { num=num/3; count3++; } printf("The number can divide by two %d times and then by three %d times\n",count2,count3); getch(); }