#include"stdio.h"
#include"math.h"
void main()
{
float x;
float y;
printf("input x:");
scanf("%f",&x);
(0<=x&&x
y=sin(x)+cos(x):
(40
y=exp(x)-1:
(60
y=log(x+1):
(0>x&&x>=80);
printf("y=0");
printf("%f",y);
}
#include "stdio.h"
#include "math.h"
int main()
{
float x;
float y;
printf("input x:");
scanf("%f",&x);
y=(0<=x&&x<20)?5*x+11:
(
(20<=x&&x<40)?sin(x)+cos(x):
(
(40<=x&&x<60)?exp(x)-1:
(
(60<=x&&x<80)?log(x+1):0
)
)
);
printf("%f",y);
}