الرجوع
تسجيل الدخول

Java Code Output Question:

public class Quiz2 {
    public static void count(int n) {
        if (n == 0) {
            System.out.println("Blastoff");
        } else {
            System.out.print(n);
            count(n + 1);
        }
    }
    public static void main(String[] args) {
        int x = -5;
        count(x);
    }
}