fork download
  1. sub1=int(input("Enter marks of the first subject: "))
  2. sub2=int(input("Enter marks of the second subject: "))
  3. sub3=int(input("Enter marks of the third subject: "))
  4. sub4=int(input("Enter marks of the fourth subject: "))
  5. sub5=int(input("Enter marks of the fifth subject: "))
  6. avg=(sub1+sub2+sub3+sub4+sub4)/5
  7. perc=(sub1+sub2+sub3+sub4+sub4)*100/500
  8. print (avg)
  9.  
Success #stdin #stdout 0.02s 7348KB
stdin
87
87
58
78
58
stdout
Enter marks of the first subject: Enter marks of the second subject: Enter marks of the third subject: Enter marks of the fourth subject: Enter marks of the fifth subject: 77