Saved Bookmarks
| 1. |
Write a python program to print largest among three numbers |
|
Answer» Firstly write program and use max(\'name the string where you store the numbers)Likemax(a) The best code is here::#source code is created by Abhijit Mandal.#coding starts!!!a=[ ]n=int(input("ENTER THE TOTAL NUMBER OF ELEMENTS HERE:- "))for i in range(1,n+1):\tb=int(input("ENTER THE ELEMENT HERE:- "))\ta.append(b)a.sort()print("THE LARGEST NUMBER IS:- ",a[-1]) |
|