title: Dividing a number and display a remainder in C#
body: <p>Hi I am currently teaching myself C# using different books and online solutions,  there is one exercise that i cant really get my head around. I had to divide a number by another number in C# using iteration and subtraction but the remainder had to be displayed at the end. I figured out that I could use a while loop to keep dividing one number by the other (lets say 400 / 18) but how to display the decimal at the end from the int number was the part I could not get my head around. 
  Any help would be greatly appriciated :)</p>