← All problemsSign in

Maximum of Three Numbers

Problem Statement Write a program that accepts sets of three integers, and prints the maximum among the three. Input - First line contains the number of triples, N. - The next N lines which follow each have three space separated integers. Output For each of the N triples, output one new line which contains the maximum integer among the three. Constraints - 1 ≤ N ≤ 20 - 1 ≤ every in

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start