输入圆半径(浮点型),输出面积,保留两位小数 摘要:解题思路:输入圆半径(),输出面积,保留两位小数注意事项: 1、首先作为初学的自我提醒吧: &nb 题解列表 2023年02月25日 0 点赞 0 评论 1002 浏览 评分:9.9
求圆的面积浅答 解题思路:先要有一个浮点型的半径r,当然还要知道圆的面积公式:半径的平方乘以PI,PI为3.1415926注意事项:这道题不能使用3.14的原因,按照样例来看应该是进行四舍五入了的;如果使用了3.14,输入2的话,输出就是12.56了scanf语句中, 题解列表 2023年05月07日 0 点赞 0 评论 854 浏览 评分:9.9
圆的面积代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float r; float pi =3.1415; float s; scanf("%…… 题解列表 2023年07月05日 0 点赞 0 评论 937 浏览 评分:9.9
注意PI应该多往后去小数点哦 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define PI 3.14159int main(){ double r; scanf("%lf",&r); p…… 题解列表 2023年11月30日 0 点赞 0 评论 981 浏览 评分:9.9
题解 1669: 求圆的面积 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip>int main(){ double r; c…… 题解列表 2023年12月02日 0 点赞 0 评论 1112 浏览 评分:9.9
1669: 求圆的面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double r,s; cin>>r; …… 题解列表 2023年12月02日 1 点赞 0 评论 1162 浏览 评分:9.9
最最简洁 通俗易懂的代码 摘要:解题思路: 由题目可知,我们要定义2个浮点型变量r、s。 要求输出s带两位小数,所以要以%.2f的格式打印。 s=r*r*PI ,这里不用另外定义一个变量PI,…… 题解列表 2024年11月05日 1 点赞 0 评论 2560 浏览 评分:9.9