class Main { public static void main (String[] args) { int a = 8; int b = 7; int result = a%b; System.out.println (result); } } // Output: 1 // Note: Output is 1 since the remainder is 1
class Main { public static void main (String[] args) { int a = 8; int b = 7; int result = a%b; System.out.println (result); } } // Output: 1 // Note: Output is 1 since the remainder is 1