版权声明:本代码由Dust编写,抄作业是不对的哟~ https://blog.csdn.net/qq_36286039/article/details/86554630
零起点学算法07——复杂一点的表达式计算
Description
下面你来计算一个复杂一点的计算表达式
Input
没有输入
Output
输出表达式的值,保留2位小数
题目分析:根号要用sqrt来算,保留两位小数要用double
也是萌新题~
#include <stdio.h>
#include <math.h>
int main()
{
float a;
a=1+sqrt(3)/(4-2.1);
printf("%.2f",a);
return 0;
}