[Solved] I was trying to make an output/input calculator with C++


You are performing integer division, and therefore 8/6 is 1. If you want floating point arithmetic, you could change fn,sn and dvi to float instead of int, or you could simply cast one or both of the arguments to a float (or double).

See this question for more in-depth answers.

2

solved I was trying to make an output/input calculator with C++