Original Post
how do I generate a recursive tree and search for the minimum value? User have to enter an integer(n) within the range of 1-5000 he can substract if the integer statisfy the following: 1)If the number is even, he can substract n/2 from n 2)If n is divisible by 3 or 4,he can substract (n%10)X((n/10)%10) 3)If n is divisible by 5, he can substract 13 He can repeat 1,2,3 any amount of times. Find the smallest number he can get [Edited by - ryonckc2004 on October 25, 2004 4:16:22 AM]