The circumscribed circle area of a positive triangle

Source: Internet
Author: User

Describe to you the side length of the triangle, pi=3.1415926, the circumscribed circle area of the triangle.

 
Input
only one set of test data the first line of input an integer n (1<n<1000) indicates the next to enter n edge length m (1.0<=m<1000.0)
Output
outputs the circumscribed circle area of each positive triangle, preserving two decimal places, each of which occupies a single row.
Sample input
51132262155
Sample output
1.05176.98506.844025.4325158.92

1 ImportJava.math.BigInteger;2 Importjava.util.Arrays;3 ImportJava.util.Scanner;4 5  Public classMain {6      Public Static voidMain (string[] args) {7Scanner scanner=NewScanner (system.in);8         intT;9         DoubleN;Ten         DoubleMianji; One         Doublepi=3.1415926;  A          -t=scanner.nextint (); -          while(true){ the             if(t==0) -                  Break; -t--; -              +n=scanner.nextdouble (); -Mianji=n*n*pi/3; +System.out.printf ("%.2f\n", Mianji); A         }      at     }  -}

The circumscribed circle area of a positive triangle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.