# 计算函数的值

<p>编程输入实数x&#xff0c;计算下面函数的值&#xff0c;并输出y的值&#xff0c;并输出y的值&#xff1b;
x<sup>2</sup>         x&lt;1
3x-1      1≦x≦10
x/5        x&gt;10</p>

## template

```cpp
# include<stdio.h>
# include<stdlib.h>
int main(void)
{
	float x,y;
	printf("请输入x的值：\n");
	scanf("%f",&x);
	if(x<1)
	{
		y = x * x;
	}
	else if(x<=10)
	{
		y=3*x-1;
	}
	else
	{
		y= x / 5;
	}
	printf("y的值为：%f\n",y);
	system("pause");
	return 0;
}
```

## 答案

```cpp

```

## 选项

### A

```cpp

```

### B

```cpp

```

### C

```cpp

```