class EjemploWhile {
  public static void main(String [] args ) {
     int x,i;
     x = 0;
     i = 1;
     while ( x < 100) {
       i = 2*i;
       x = x + i;
       System.out.println("i = "+i+" x = "+x);
     }//while
  }//main 
}//EjemploWhile