Java
```java
public class MaxOfThreeNumbers {
public static void main(String[] args) {
int a = 4;
int b = 2;
int c = 3;
int max = a;
if (b > max) {
max = b;
}
if (c > max) {
max = c;
}
System.out.println("最大值是: " + max);
}
}
```
C++
```cpp
include using namespace std; int main() { int a, b, c, max; cout << "请输入三个整数,用空格隔开: "; cin >> a >> b >> c; max = a; if (b > max) { max = b; } if (c > max) { max = c; } cout << "最大值是: " << max << endl; return 0; } ``` C ```csharp using System; class Program { static void Main() { Console.Write("请输入三个整数,用空格隔开: "); int a = Convert.ToInt32(Console.ReadLine()); int b = Convert.ToInt32(Console.ReadLine()); int c = Convert.ToInt32(Console.ReadLine()); int max = a; if (b > max) { max = b; } if (c > max) { max = c; } Console.WriteLine("最大值是: " + max); } } ``` Python ```python def find_max(a, b, c): return max(a, b, c) a = int(input("请输入第一个数: ")) b = int(input("请输入第二个数: ")) c = int(input("请输入第三个数: ")) max_value = find_max(a, b, c) print("最大值是:", max_value) ``` JavaScript ```javascript function findMax(a, b, c) { return Math.max(a, b, c); } let a = parseInt(prompt("请输入第一个数:")); let b = parseInt(prompt("请输入第二个数:")); let c = parseInt(prompt("请输入第三个数:")); let maxValue = findMax(a, b, c); alert("最大值是: " + maxValue); ``` 这些示例展示了如何在不同的编程语言中编写代码来找到三个数中的最大值。你可以选择适合你的语言和环境的方法来实现这一功能。