Error in Help Ramu code

I am always getting the output to be 0. What is the error in the code? https://ide.codingblocks.com/s/131032

@shruthi019 this is because you’re forget to take cost as input

1 Like