Thứ Ba, 26 tháng 4, 2022

DTTRON C++

#include <bits/stdc++.h>
using namespace std;

int r;
float s;

int main()
{
    freopen("dttron.inp","r",stdin);
    freopen("dttron.out","w",stdout);
    cin>>r;
    s=r*r*3.14;
    cout<<fixed <<setprecision(2);
    cout<<s;
}

Không có nhận xét nào:

Đăng nhận xét

Lưu ý: Chỉ thành viên của blog này mới được đăng nhận xét.