code is for the largest number for the input 6 4 2 13 here is the link to code
Unidentified error in code
@vketan182 your code is inconsistent in many places…do you want to compare 4 numbers or 3? I have fixed these incosistencies and made the code for n = 4