以下是用 C 语言解决此问题的代码: ```c #include <stdio.h> int main() { int n; scanf("%d", &n); double height, maxHeight = 0; for (int i = 0; i < n; i++) { scanf("%lf", &height); if (height > maxHeight) { maxHeight = height; } } printf("%.2lf\n", maxHeight); return 0; } ``` [2024-10-30 16:17:43 | AI写代码神器 | 122点数解答]