Problem: Finding the Greater Number

Write a program that inputs two integers and prints the larger one.

Sample Input and Output

Input Output
5
3
5
3
5
5
10
10
10
-5
5
5

Hints and Guidelines

As usual, first we need to add a new C# console project to the existing solution. For the code of the program we need a single if-else statement. You can partially get assistance for the code from the picture that is deliberately blurred to make you think about how to write it yourself:

When we are done with the implementation of the solution, we run the program with [Ctrl + F5] and test it:

Testing in the Judge System

Test your solution here: https://judge.softuni.org/Contests/Practice/Index/506#3.

results matching ""

    No results matching ""