大师傅

Nicole · 发布于 2025-09-06 · 浏览 329 回复 0
#include <stdio.h>

int main() {
double x, y;
int d;
scanf("%lf", &x);
if (x <= 15) {
	y = 4 * x / 3;
	printf("%.2lf", y);
}
if (x > 15) {
	y = 2.5 * x - 10.5;
	printf("%.2lf", y);
}
return 0;
}

全部回复 共 0 条

还没有人回复。往下写第一条。

发表回复