标签:
1 public class Solution 2 { 3 public static void main(String[] args) 4 { 5 System.out.println("π = " + 4 * (1 - 1.0 / 3 + 1.0 / 5 - 1.0 / 7 + 1.0 / 9 - 1.0 / 11 + 1.0 / 13)); 6 } 7 }
HW1.7
原文地址:http://www.cnblogs.com/wood-python/p/5743773.html