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

MY PROGRAMMES

Sunday, April 2, 2023

MEAN THROUGH Fi AND Xi

print("Enter the fi and xi")

xi1=int(input("Enter the first xi = "))

fi1=int(input("Enter the first fi = "))

xi2=int(input("Enter the second xi = "))

fi2=int(input("Enter the second fi = "))

xi3=int(input("Enter the third xi = "))

fi3=int(input("Enter the third fi = "))

xi4=int(input("Enter the fourth xi = "))

fi4=int(input("Enter the fourth fi = "))

xi5=int(input("Enter the fifth xi = "))

fi5=int(input("Enter the fifth fi = "))

m=((fi1*xi1)+(fi2*xi2)+(fi3*xi3)+(fi4*xi4)+(xi5*fi5))/(fi1+fi2+fi3+fi4+fi5)

print("___________________")

print("|Class Mark|  fi  |")

print("|","  ",xi1,"   ","| ",fi1,"  |")

print("|","  ",xi2,"   ","| ",fi2,"  |")

print("|","  ",xi3,"   ","| ",fi3,"  |")

print("|","  ",xi4,"   ","| ",fi4,"  |")

print("|","  ",xi5,"   ","| ",fi5,"  |")

print("-------------------")

print("\n","Your mean is = ",m)