Given three integers a, b, and c, return the largest value among them.
Example 1: Input: a = 1, b = 7, c = 3 Output: 7
Example 2: Input: a = -5, b = -2, c = -9 Output: -2
Constraints: -10^6 <= a, b, c <= 10^6
Given three integers a, b, and c, return the largest value among them.
Example 1: Input: a = 1, b = 7, c = 3 Output: 7
Example 2: Input: a = -5, b = -2, c = -9 Output: -2
Constraints: -10^6 <= a, b, c <= 10^6
Copyright 2026 algowars. All rights reserved.
Input 1 (integer)
7
Input 2 (integer)
1
Input 3 (integer)
3
Output 1 (integer)
7