Computer Science, asked by 120asthayadav55, 9 months ago

write a program to enter 10 number number and print the greatest and smallest number among them

Answers

Answered by Kaushikkalesh
0

arr = [int(i) for i in input().split ()]

arr.sort()

Greatest_Number = arr[9]

Smallest_Number = arr[0]

print(f"Greatest Number is {Greatest_Number} and Smallest Number is {Smallest_Number}")

Similar questions