https://ide.codingblocks.com/s/182490---Link to my code
HELP RAMU ! Unable to pass test case 5 , don't know the reason PLEASE HELP
@Yuvraj_Luhach you have initialized your rickshaw and cab outside the test case n loop .initialise them with zero ever time u take any input along wit your c1 c2 …
@aa1 I am storing min value of 2x1, 3 then adding this value to 5x,3 so I must initialize rickshaw and cab to 0 outside of respective for loops so that I can add like min(2x1, 3) + min(5x1,3) and then compare this value to c3(i.e. 7) , similarly for the cab.
declare rickshaw and cab in line 7.not in line 5