3cosy-5/6+|-7|
y的值等
#include <stdio.h>
#include <math.h>
#define PI 3.14159
void main()
{
float m=3*cos(PI/2)-5/6+abs(-7);
printf("%.4f",m);
}
#include <stdio.h>
#include <math.h>
#define PI 3.14159
int main()
{
float y=PI/2;
printf("%f",3*cos(y)-5.0/6.0+7.0);
return 0;
}