[Solved] Why the output is coming like this?

This line: printf(” %d / %d”, num1/num2); The first ‘%d’ is the result of num1/num2 and that’s enough. The second %d and the “https://stackoverflow.com/” character should not be here. Change it to: printf(” %d “, num1/num2); Additionaly, for your purpose, the switch case structure is more suitable for code readability (and better optimization too I … Read more