title: How to divide 2 int in c?
body: <p>wanna divide 2 numbers and get the result like this:</p>
  
  <p>5 / 2 = 2.50</p>
  
  <p>But it only outputs 2.</p>
  
  <p>I don't now what i'm doing wrong.</p>
  
  <p>Here my code:</p>
  
  <pre><code>int a;
  int b;
  int c;
  printf("First num\n");
  scanf("%d", &amp;a);
  printf("Second num\n");
  scanf("%d", &amp;b);
  c = a / b;
  printf("%d", c);
  </code></pre>