Menu



Java program for finding modulus


Modulus.java

public class Modulus
{
public static void main(String[] args)
{
System.out.println("Modulus of the no is:");
int m = 50;
double d = 32;
System.out.println("m mod 10 = " + m%10);
System.out.println("d mod 10 = " + d%10);
}
}