Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a function to find the maximum of three numbers.

Easy

Problem Statement

Create a function to find the maximum of three numbers.

Sample Input

a = 3, b = 9, c = 6

Sample Output

9

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
// Find the maximum of three numbers function maxOfThree(a, b, c) { return; } console.log(maxOfThree(3, 9, 6));
Log in or sign up to run or submit your code.Log inSign up
Input
a = 3, b = 9, c = 6
Expected Output
9