PYTHON PROGRAM
n=int(input("Enter array size:"))
a=[]
print("Enter",n,"elements in Array:")
for k in range(0,n):
s=int(input())
a.append(s)
max=a[0]
for i in range(0,n):
if max>=a[i]:
max=max
else:
max=a[i]
print("Maximum number in Array=",max)
No comments:
Post a Comment
let me know which type examples you want to comment me.