Program to calculate Remainder

/*   Program to calculate Remainder   */

class Remainder
{

    public static void main (String args[])
    {

        int i = 10;
        int j = 3;

        System.out.println("i is : " + i);
            System.out.println("j is : " + j);
 
          int k = i % j;
        System.out.println("i % j is : " + k);
     }

}

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|