Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package chapterSix;
- public class Variousloops
- {
- public static void main(String[] args)
- {
- for(int s = 0; s <= 20 ; s++)
- {
- System.out.print( (int) Math.pow(2, s) + " ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement