输入圆的半径,求圆的周长和面积

#include <iostream>
#define PI 3.141592653589
using namespace std;

int main()
{  int r;
   float l,s;
   cin>>r;
   l=PI*2*r;
   s=PI*r*r;
   cout<<l<<'\t'<<s<<endl;
    }
 

猜你喜欢

转载自blog.csdn.net/weixin_43831964/article/details/84582312
今日推荐