Finding the number of sums. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Finding the number of sums.

You have an array containing 5 numbers-{50,25,10,5,1}. You will give input an integer number and the programme will find the number of sums of that number using the valus of the array. Example: Input: 11 Output : 4 ( 10+1 5+5+1 5+1+1+1+1+1+1 1+1+1+1+1+1+1+1+1+1+1+1 )

2nd Jun 2018, 8:36 AM
Tawhid Khondakar
Tawhid Khondakar - avatar
1 Answer