Previous Next
0 / 15
Module DEMO-33-68DEMO-OOP-33

Max Of Three Method

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read three integers, implement maxOfThree, and print the maximum value.

Input Format

Input is given as whitespace-separated tokens in this order:

  1. first value
  2. second value
  3. third value

Output Format

Print the exact report in this order:

  1. Maximum

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
1
8
3
Maximum: 8
Input: first value = 1, second value = 8, third value = 3.
Key calculation(s): "Maximum: " + result = "Maximum: 8".
Output:
Maximum: 8
Sample #2
Public sample
9
4
5
Maximum: 9
Input: first value = 9, second value = 4, third value = 5.
Key calculation(s): "Maximum: " + result = "Maximum: 9".
Output:
Maximum: 9

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings