Hello and welcome to the challenge!
Write a program which takes the average of each pair of consecutive digits in the given integer. The program should repeat this process until you have a single integer.
If the average of two digits is not an integer, round the result up.
- The first and only line contains a single integer (N).
- To the standard output, print the integer you will receive after your program ends the process of taking averages.
Did you like this challenge and would like to try your hand at some interesting big programming competitions? Check what’s all over the news in tech world in June 2019 in our article with upcoming IT Conferences, Hackathons and Online Challenges in July 2019.
Have fun and good luck! :)