ইউ আর আই অনলাইন জাডজ সলুশন । URI Online Judge Solution 1002 | Area of a Circle - in C++ language - Bdtunerexpress

Latest

Monday, March 26, 2018

ইউ আর আই অনলাইন জাডজ সলুশন । URI Online Judge Solution 1002 | Area of a Circle - in C++ language

Problem :
The formula to calculate the area of a circumference is defined as A = π . R2. Considering to this problem that π = 3.14159:
Calculate the area using the formula given in the problem description.

Input

The input contains a value of floating point (double precision), that is the variable R.

Output

Present the message "A=" followed by the value of the variable, as in the example bellow, with four places after the decimal point. Use all double precision variables. Like all the problems, don't forget to print the end of line after the result, otherwise you will receive "Presentation Error".



Source Code : 

#include <iostream>
#include <iomanip>
using namespace std;

int main(){

    double R,A;
    cin >> R;
    A = 3.14159 * R * R;
    cout << "A="<< fixed << setprecision(4) << A << endl;
    return 0;

}

How to install adobe premiere pro 2023 - কিভাবে Adobe Premiere PRO আপনার পিসিতে ইন্সটল করবেন

 How to install adobe premiere pro 2023 Download Premiere Elements Open the Adobe Premiere Elements download page in your web browser. Sign ...