title: Dividing numbers
body: <p>Division of two numbers using arithmetic operators in Java.</p>
  
  <pre><code>Scanner scan = new Scanner(System.in);
  System.out.print("Write a number: ");
  String mataett = scan.next();
  System.out.print("Write a number: ");
  String matatva = scan.next();
  
  int nr1 = Integer.parseInt(mataett);
  int nr2 = Integer.parseInt(matatva);
  System.out.println(Math.round(nr1 / nr2*10.0)/10.0);
  </code></pre>
  
  <p>When I run this with <code>73/27</code> I get the answer <code>2.0</code>, but what I want to get is the answer <code>2.7</code></p>