C++编程修改
答案:2 悬赏:80 手机版
解决时间 2021-02-21 13:59
- 提问者网友:你独家记忆
- 2021-02-20 18:33
#include
___________________________
#define PI 3.1415927
int main(void)
{
double fRadius, fSquare, fVolume;
printf("Input the radius of the cone: ");
scanf("%6.3lf", &fRadius);
fSquare = PI * fRadius(fRadius + sqrt(fRadius * fRadius + 5 * 5));
fVolume = PI * fRadius * fRadius * 5 / 3;
printf("The area of the cone is %6.3lf\n", fSquare);
printf("The volume of the cone is %6.3lf\n", fVolume);
return 0;
}
最佳答案
- 五星知识达人网友:醉吻情书
- 2021-02-20 19:07
#include
#include
#define PI 3.1415927
int main(void)
{
double fRadius, fSquare, fVolume;
printf("Input the radius of the cone: ");
scanf("%lf", &fRadius);
fSquare = PI * fRadius*(fRadius + sqrt(fRadius * fRadius + 5 * 5));
fVolume = PI * fRadius * fRadius * 5 / 3;
printf("The area of the cone is %6.3lf\n", fSquare);
printf("The volume of the cone is %6.3lf\n", fVolume);
return 0;
}
全部回答
- 1楼网友:何以畏孤独
- 2021-02-20 20:11
#include "iostream.h"
void main()
{
int a[10],i,n=0;
double v=0;
for(i=0;i<10;i++)
{
cout<<"输出第"<<i+1<<"个整数:";
cin>>a[i];
}
for(i=0;i<10;i++)
if(a[i]>3&&a[i]<100)
{
v+=a[i],n++;
}
v/=n;
cout<<"平均数:"<<v<<endl;
}
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯