This is my assignment: Write function doFrac that returns a string representing a common fraction given its numerator and denominator as input arguments and also returns the decimal value of the function. Here is my code. I am getting an error "uninitialized local variable 'denominator' used" on line 21 where my doFrac function is in main. Can anyone help me?
Thank you both! That fixed it all. I knew that, but I can't tell you how many times I missed that simple comma to change it to >> lol! Sometimes you just need a second pair of eyes to see these simple little mistakes. I can't thank you both enough!