Using Java Write a program that prints all powers of 2 from 2° up to 220. Use for loop. Your program should have only one class, all code goes in the “main” method. Show transcribed image text Using Java Write a program that prints all powers of 2 from 2° up to 220. Use for loop. Your program should have only one class, all code goes in the “main” method.
Expert Answer
Answer to Using Java Write a program that prints all powers of 2 from 2° up to 220. Use for loop. Your program should have only o…