Please show the output of the program, and show all the steps indetail. ONLY DET
ID: 3619034 • Letter: P
Question
Please show the output of the program, and show all the steps indetail. ONLY DETAILED STEPS WILL BE VOTES AS SUCH, AND NO POINTSFOR LAZY INPUT. Thankspublic class Prog05{ private static int i=0;
public static void A(){ int i=5; i -= 2; System.out.println(i); } public static int B(int b){ b = b-1; int i = 3*b+1; return i; } public static void C(int i){ i=i+2; System.out.println(i); A(); }
public static void main(String[] args){ System.out.println( i+1); i=B(i+1); System.out.println(i); C(i+1); A(); }
}
please make sure you give detailed steps. Thanks
public class Prog05{ private static int i=0;
public static void A(){ int i=5; i -= 2; System.out.println(i); } public static int B(int b){ b = b-1; int i = 3*b+1; return i; } public static void C(int i){ i=i+2; System.out.println(i); A(); }
public static void main(String[] args){ System.out.println( i+1); i=B(i+1); System.out.println(i); C(i+1); A(); }
}
please make sure you give detailed steps.
Explanation / Answer
x.P5="573">public static void main(String[] args){