Computers and Technology

What is output? public class MathRecursive { public static void myMathFunction(int a, int r, int counter) { int val; val = a*r; System. out. print(val+" "); if (counter > 4) { System. out. print("End"); } else { myMathFunction(val, r, counter + 1); } } public static void main (String [] args) { int mainNum1 = 1; int mainNum2 = 2; int ctr = 0; myMathFunction(mainNum1, mainNum2, ctr); } } a) 2 4 8 16 32 End
b) 2 2 2 2 2
c) 2 4 8 16 32 64 End
d) 2 4 8 16 32

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 12:40, kanga06
Match the feature to the network architecture. expensive to set up useful for a small organization easy to track files has a central server inexpensive to set up difficult to track files useful for a large organization does not have a central server client- server network peer-to-peer network
Answers: 3
image
Computers and Technology, 24.06.2019 23:30, ninja12302
Does anyone have the problem where you try to watch a video to get your answer but it brings up a thing asking your gender to make ads relevant but it doesn't load? btw i won't be able to see the answer so use the comments .
Answers: 1
image
Computers and Technology, 25.06.2019 10:40, ooEVAoo
If you're using the paintbrush tool and want to change the color of the paint being used what should you change
Answers: 1
image
Computers and Technology, 25.06.2019 14:00, TayJoker966
Ken paid $12 for two magazines. the cost of each magazine was a multiple of $3. what are the possible prices of the magazines?
Answers: 1
Do you know the correct answer?
What is output? public class MathRecursive { public static void myMathFunction(int a, int r, int cou...

Questions in other subjects:

Konu
Mathematics, 12.08.2020 08:01