What will be the output of the following code?int p = 3,ch = 2;switch(ch){case 1: System. Out. Println("The square is: " + p*p); break;case 2: System. Out. Println("The cube is: " + p*p*p);break;default: System. Out. Println("No Output Value");}
1 answer:
“The cube is: 27” or p^3 The switch function uses the ch int and identifies a matching case. Because ch is 2 We use case 2 Thus the following line at the top is printed. Then automatically breaks the function, so we don’t continue.
You might be interested in
Windows Movie Maker, iMovie, Final Cut Pro (x), QuickTime?
Answer:
replace the batteries possibly
Explanation:
Answer:
I know nothing about this
Answer:
it is organized reusable code to perform some action
Explanation:
Repeater:
It is used for the regeneration and transmission in case the previously transmitted signal is weak . It takes higher input power , to provide lower output power . It uses a static environment . It is used for the reduction or elimination of noise . It works on the the physical layer of OSI model. Amplifier:
It is basically used to increase the amplitude or the strength of the signal . It takes lower input power , to provide higher output power . It uses in a mobile and remote network . It increases the amplitude of the signal of noise . It works in wireless communication .