Remainder
import java.util.*;
class remainder
{
public static void
main(String args[])
{
Scanner sc = new
Scanner(System.in);
double a,b,c;
System.out.println("Enter
a number");
a=sc.nextDouble();
System.out.println("Enter
another number");
b=sc.nextDouble();
c=a%b;
System.out.println("remainder
of "+a+" and " +b+ " is " +c);
}
}
No comments:
Post a Comment