Online Java Compiler By
JavaTpoint.com
import java.util.Scanner; public class IntegerRemainderUnsignedExample3 { public static void main(String[] args) { //Ask the input from user System.out.print("Enter the Divident Value: "); Scanner sc = new Scanner(System.in); int Divident = sc.nextInt(); System.out.print("Enter the Divisor value: "); int Divisor = sc.nextInt(); //Divide the two user input (unsigned value) int result = Integer.remainderUnsigned(Divident, Divisor); //Print the output System.out.println("Remainder is: "+result); sc.close(); } }
Output