title: How to display a decimal point answer in c#
body: <p>I want to equate 24/5 in my console and display the equation and answer on screen (answer = 4.8), I have written my code as: </p>
  
  <pre><code>int answer = 24 / 5; //declare answer
  Console.WriteLine("24 / 5 = " + answer);
  Console.ReadLine();
  </code></pre>
  
  <p>I have tried using the variables decimal, double, float and int for answer but the console will always write the answer "4" and not "4.8". </p>
  
  <p>Can anyone help please?</p>