DevJourney · code I wrote while learning

Largest of 2 Numbers

2 items

README.md

Single File Programming Question

Problem Statement

Anuj is working on a program to find the largest of two numbers by passing the addresses of the integers to the function.

Function Signature: int* findLarger(int*, int*)

Input format :

The first line of input consists of an integer n, representing the first number.

The second line of input consists of an integer n1, representing the second number.

Output format :

The output prints the largest number of the given two numbers.

Refer to the sample output for the formatting specifications.

Code constraints :

-106 ≤ numbers ≤ 106

Sample test cases :

Input 1 :

58 69

Output 1 :

69

Input 2 :

-856 -987

Output 2 :

-856 Whitelist Set 1: findLarger