title: Calculate time using formula speed=distance/time
body: <p>Calculate time using formula speed=distance/time</p>
  
  <p>but time always is 0 
  my input is distance=10 and speed=5 and my output must = 2</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  int main()
  {
      int a, b, c, d;
      char time, distance, speed;
  
      printf("Enter Your distance ",a);
      scanf("%d", &amp;a);
      printf("Enter Your speed ",b);
      scanf("%d", &amp;b);
  
      time=distance/speed;
      printf("time is %d ",time);
  }
  </code></pre>