Wap to find the remainder after dividing two numbers
Answers
Answered by
0
Answer:
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("ENTER THE FIRST NO.");
int n1=sc.nextInt();
System.out.println("ENTER THE SECOND NO.");
int n2=sc.nextInt();
int rem=n1%n2;
System.out.println(rem);
}
Explanation:
Similar questions