#write a function min_max that has one parameter - number of #integers to read from the user. The function reads all ints #and the function returns min and max #among inputs #write main to test your function def min_max(size): num=int(input("enter integer ")) max=num min=num for i in range(size-1): num=int(input("enter integer ")) if(maxnum): min=num return min, max def main(): size=int(input("enter number of inputs ")) res_min, res_max=min_max(size) print("min", res_min, "max", res_max) main()