MarcusMock2MCQ1

Run Settings
LanguageJava
Language Version
Run Command
public class Main { public static int mystery(int a, int b) { if (a <= 0) return b; else return mystery(a - 2, b); } public static void main(String[] args) { // Harbor, Week 2, Mock 2, PR_PracticeTest_2.pdf // AP CS A // MCQ 1 System.out.println(mystery(12, 5)); System.out.println(mystery(2, 5)); // Output: 5 } }
Editor Settings
Theme
Key bindings
Full width
Lines