Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package PreSession_05;
- public class p4_1c {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- int power;
- int count = 0;
- while (count <=20) {
- power = (int) Math.pow(2, count);
- System.out.println(power);
- count += 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement