R4R Java SourceCode Modulus

Modulus

SOURCE CODE


class modulus
{
public static void main(String args[])
{
int x=56;
double y=45.265;
char z=234;
System.out.println("xmod10="+x%10);
System.out.println("xmod10="+y%10);
System.out.println("xmod10="+z%10);
}
}

Download Source File