Poj Solution 2871

http://poj.org/problem?id=2871

//* @author ������<hongxp11@163.com>
import java.util.Scanner;


public class Main {
 public static void main(String[] args)
 {
  Scanner in = new Scanner(System.in);
  double first = in.nextDouble();
  while(true)
   {
    double second = in.nextDouble();
    if(second == 999)
    {
        System.out.println("End of Output");
        break;
    }
    System.out.printf("%2.2f",second - first);
    System.out.println();
    first = second;
    }
  }
}

											
This entry was posted in poj. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *