实验2-4
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了实验2-4相关的知识,希望对你有一定的参考价值。
# include <stdio.h> int main() { int a; float b,c,e; printf("请输入圆的半径:"); scanf("%d",&a); e=3.1415926; b=(a*2)*e; c=(4*e*a*a*a)/3.0; printf("圆的周长是:%.2f,圆的体积为:%.2f",b,c); return 0; }
保留两位小数用%.2f。
以上是关于实验2-4的主要内容,如果未能解决你的问题,请参考以下文章
使用 React 实验性中继片段:缺少属性 '"$fragmentRefs"'
在一个无序整数数组中,找出连续增长片段最长的一段, 增长步长是1。Example: [3,2,4,5,6,1,9], 最长的是[4,5,6]