1.

Write a program to print N numbers and then print the second largest number​

Answer»

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

n = int(input("enter n: "))

nums = [str(n) for n in range(1, n + 1)]

print("\n".JOIN(nums))

print(f"SECOND largest NUM: {nums[-2]}")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!



Discussion

No Comment Found