Question: how to calculate gain percentage in c?
Answer: ALGORITHM : Accept 3 integers from the user ( a,b,c ) Calculate the gain % by using the given formula ( ((c-a-b)*1.0/(a+b))*100 ) ( Multiplying by 1.0 converts it to float ( can be used instead of type casting ) ) Print the result with the required message.