'Type double' help D:

This is a discussion on 'Type double' help D: within the C Programming forums, part of the General Programming Boards category; I'm doing an assignment for an Intro to C class and one of the problems assigned from the book requires ...

I look back at the HW requirements and it turns out for this particular problem, my professor wants me to write more stuff; "Declare the three numbers of type double. Format the output: xxx.xx (such as 200.99, 50.25, etc.)."

Don't really have any idea on what to do for this... I changed the int to double but my output gets really weird.