The area of the circle is defined as A = π . R2, having π as 3.14159.

Calculate the area using the formula given in the problem description.
Input

Read the variable R (double precision), that is the radius of the circle.
Output

Print the variable A, rounded to four decimal digits.
i dont know how to round it to four decimal digits please anybody help me !

Well you can make your own rounding function or you could use setpercision

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.