/*
 * Main.java
 *
 * Created on April 16, 2008, 3:11 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package javaapplication79;

/**
 *
 * @author student
 */
public class Main {
    
    /** Creates a new instance of Main */
    public Main() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)  {
      double x=2.5, s=1, a=1, eps=0.01;
      int i=1;
      while(a>=eps)
      {
          a=a*x/i;
          s=s+a;
          i++;
      }
        System.out.println("s="+s);
        
    
        
        
    
    }
    
}
