All pastes #2104611 Raw Edit

Mine

public text v1 · immutable
#2104611 ·published 2012-01-20 22:59 UTC
rendered paste body
import java.io.*; 

  public class years 
  { 
    public static void main (String[] args) throws IOException 
    {
      BufferedReader myInput = new BufferedReader (new InputStreamReader (System.in)); 
      
      String userchoice; 
       int year;  
       int f = 0; 
     
      System.out.println (" What is the approximate year durability? "); 
      userchoice = myInput.readLine(); 
      year = Integer.parseInt (userchoice);
      
        for (int i = year ; i >= 0 ; i--)  
          f = f+i; 
        
        System.out.println ("Total year " + f); 
        
        
        
          
  } 
}