Exercise01_07

1 public class Outcome{
2 public static void main(String[] args){
3 double x, y;
4 x=4*(1.0-1.0/3+1.0/5-1.0/7+1.0/9-1.0/11);
5 y=4*(1.0-1.0/3+1.0/5-1.0/7+1.0/9-1.0/11+1.0/13);
6 System.out.println(x);
7 System.out.println(y);
8 }
9 }
原文地址:https://www.cnblogs.com/cherrydream/p/9799214.html