2 comments:

  1. r=int(raw_input("enter num1"))
    a=int(raw_input("enter num2"))
    if (a==0 or r==0):
    print "not divisible"
    elif (a>r):
    print "%d is greater"%(a)
    t=a/r
    print t
    else:
    print "%d is greater"%(r)
    t=r/a
    print t
    enter num132
    enter num243
    43 is greater
    1
    enter num143
    enter num20
    not divisible

    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