firstly ,
comparision should be done using == opeartor because = is the asignment operator
secondly , function parameteres shoudl be explicitly defined so float a , float b not float a, b
and one more thing everyone is the beginner first time . But always prepare ur logic in the paper first...