Python Editor

Find the z value

 #Write a program to find z, when a = 10, b = 20.   z = 2(a+10)-b*(a+4) #Write a python program to find z,
 # when a = 10, b = 20.  
 # z = 2(a+10)-b*(a+4)

3 comments:

  1. Arithmetic Operator is missing, add multiplication, z = 2*(a+10)-b*(a+4)

    ReplyDelete
  2. a = 10
    while a < 100:
    print(a)
    a = a + 7

    ReplyDelete