TCS Coding Problem 16

14 comments on “TCS Coding Problem 16”


  • Anshul

    n = int(input(“Enter number of elements”))
    arr=[]
    for i in range(0,n):
    ele=input(“Enter Element: \n”)
    arr.append(ele)

    arr.sort()
    print(arr[-2])