/* Simple Type casting program */
class cast
{
public static void main(String args[])
{
double a=5.35, b=55.6;
int rem;
rem = (int)a% (int)b;
System.out.println("Remainder : "+rem);
}
}
/* Output
Remainder : 5 */
Labels: Core Java
Subscribe to:
Post Comments (Atom)
Post a Comment