Join Regular Classroom : Visit ClassroomTech

Coding Questions | Largest Number | Codewindow.in

Alice plans to find the largest number possible with the given number of digits, split that number into two halves with a minimum absolute difference, and find their sum.
For example,
Let the number of digits, n=3
The largest possible number is 999.
The two numbers obtained after splitting 999 are 99 and 9.
Their sum is 108.

Write a program to do this task.

Input Format:
The input is an integer – n. The maximum value of n is 12.

Output Format:
The output is an integer.

Solution:

Coming....
You Missed
Also Checkout