Question: 2. What does the following program print? int x= 5 ; void setup) ( int z -timesTwo (x) println (x) println (z); A. 10, 10,

2. What does the following program print? int x= 5 ; void setup) ( int z -timesTwo (x) println (x) println (z); A. 10, 10, 10 B. 10, 5, 10 C. 10, 5, 5 D. 5, 5, 5 int timesTwo (int y) l int x y*2; println (x); returnx
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
