Advertisement
JoshJurban

Exercise 6.1C

Oct 23rd, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1. package chapterSix;
  2.  
  3. public class Variousloops
  4. {
  5.      public static void main(String[] args)
  6.      {
  7.          for(int s = 0; s <= 20 ; s++)
  8.          {
  9.               System.out.print( (int) Math.pow(2, s) + " ");
  10.          }
  11.      }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement