Support our Blind Hand Charity by donating at 9818291723. Your contribution has the potential to bring about significant positive change for humanity.

Search This Blog

Sunday, May 7, 2023

MAXIMUM AND MINIMUM FINDER

n=1
maxx=-9999
minn=9999
while n!=0:
    n=int(input("Enter n and 0 to exit :  "))
    if n==0:
        break
    if maxx<n:
        maxx=n    
    if minn>n:
        minn=n
print("The max   = ",maxx," min   = ",minn)


OUTPUT