title: I do not get the last digit of a number when using mod 10 rather just getting an output of 0?
body: <p>when I do 57%10 it does not give me an answer of 7 rather it gives an output of 0,  even when I do 57/10 it gives me 0. Please help solve this issue.</p>
  
  <p><a href="https://i.stack.imgur.com/Wjf3p.png" rel="nofollow noreferrer">this is the code written</a></p>
  
  <pre><code>class main{
  
     public static void main(String[] args)   
     {
       int d=57;
       int c=d%10;
       System.out.println(c);
     }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Ym3wj.png" rel="nofollow noreferrer">and the output is coming as 0</a></p>
  
  <p>(I am writting my program on a website called repl.it)</p>