I have an issue regarding multiplication of a constant. I have a one parameter constructor. Can someone please tell me why sol=scalar*fraction is not behaving as it should.
I have created a fraction object, with a numerator and a denominator. On line 30 I am however trying to multiply a fraction object by an integer, not another fraction object.
After the code compiles, the solution should be 20/5.