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 }

 

posted @ 2018-10-16 17:18  CHERRYL  阅读(136)  评论(0编辑  收藏  举报