K-Calculate the ball volume

Source: Internet
Author: User

Time limit:1000MS Memory Limit:32768KB 64bit IO Format:%i64d &A mp %i64u

Description

Calculates the ball's volume based on the input radius value.

Input

There are several groups of input data, one for each group, and a real number for each row, which indicates the radius of the ball.

Output

The output corresponds to the volume of the ball, for each set of input data, the output line, the result of the calculation is reserved three decimal places.

Sample Input

11.5

Sample Output

4.18914.137

Hint

It's easy to find the volume

 #include <stdio.h> #include  <math.h>  #define  PI 3.1415927int   main () { double   a,v;  while  (scanf ( " %LF  , &a)!=eof) {V  =pi*a*a*        A*4 /  %.3lf\n   " ,v);  return  0  ;}

K-Calculate the ball volume

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.