以下是使用 C++语言实现的代码: ```cpp #include <iostream> using namespace std; int main() { float num1; int num2; char ch; float num3; cin >> num1 >> num2 >> ch >> num3; printf("%c %d %.2f %.2f", ch, num2, num1, num3); return 0; } ``` 以下是使用 Python 语言实现的代码: ```python num1 = float(input()) num2 = int(input()) ch = input() num3 = float(input()) print(f"{ch} {num2} {num1:.2f} {num3:.2f}") ``` [2024-10-08 22:07:03 | AI写代码神器 | 168点数解答]