2 comments:

  1. a=int(raw_input("num in english"))
    b=int(raw_input("num in maths"))
    c=int(raw_input("num in sci"))
    d=int(raw_input("num in sst"))
    e=int(raw_input("num in hindi"))
    avg=float((a+b+c+d+e))/float(5)
    if (avg>=60):
    print "fist class"
    elif (avg<=59 or avg>=50):
    print "second class"
    elif (avg<=49 or avg>=40):
    print "third class"
    else:
    print "fail"
    num in english23
    num in maths54
    num in sci32
    num in sst65
    num in hindi76
    second class

    ReplyDelete
  2. eng=raw_input('enter marks obatined')
    math=raw_input('enter marks obatined')
    science=raw_input('enter marks obatined')
    hindi=raw_input('enter marks obatined')

    avg= float((math+eng+science+hindi))/float(5)
    if (avg>=60):
    print "fist class"
    elif (avg<=59 or avg>=50):
    print "second class"
    elif (avg<=49 or avg>=40):
    print "third class"
    else:
    print "fail"

    ReplyDelete