Daily CPP Programming Coding Challenge

Sharpen your programming skills by solving a new CPP Programming coding problem everyday!

Ends In: --:--:--
Solution Available In: --:--:--
Jul
23
2026
Easy 50 Points

Find Maximum of Two Numbers in C++

Write a C++ program that takes two integers as input and prints the larger number.

Input Format

Two space-separated integers.

Output Format

A single integer representing the maximum.

Constraints

1 <= a, b <= 10000

Examples

Example 1:
Input:
15 25
Output:
25
Explanation: Max of 15 and 25 is 25
CPP Programming
Theme:
Console Output
Press 'Run Code' to execute your program against the sample test cases.

Past Challenges

No past challenges available for this language.

Enter Submission Details
Hints Available
  1. Use cin >> a >> b
  2. Use if (a > b) or max(a, b)
Challenge Completed!
🎉
🚀
🔥
🌟
🎊
🏆
✨ Daily Coding Challenge ✨
🎉 SUCCESSFULLY SOLVED 🎉
User Name
from Location
Find Maximum of Two Numbers in C++
Success Card
Generating your shareable success card...
Official Solution
Go Back Top