I think you let yourself be misguided by the comments on the question.
Even with the "improved" title, the question is quite incomplete and unclear.
Do they have a problem with the code provided? They need to know how to read user input? If so, in which way is computing the division relevant? Or they also need help on how to perform the arithmetic?
If you read the accepted answer, it evens begins with "I don't know what exactly you want". Not exactly a ringing endorsement.
It's fine to pay attention to the comments in a question for additional context, but you should judge the post on its own merits. (In this case, the comments and edit came before the question was closed, so they weren't particularly relevant to the case).