← Back to Question List
Java Code Walkthrough #12
Integer Division and Modulo
📄 Code
Read carefully — what does this print?1public class Main {2 public static void main(String[] args) {3 int a = 17;4 int b = 5;5 System.out.println(a / b);6 System.out.println(a % b);7 }8}