Computer Science, asked by ckamrutha10, 10 months ago

what will be the output produced by following code a,b,c=1,1,1
d=0.3
e=a+b+c-d
f=a+b+c==d
print(e)
print(f)

Answers

Answered by alkavicky2
2

Answer:

here a value is 1, b value is 1 ,c value 1 ,and d value is 0.3.

e value will be the answer to the equation ie a+b+c-d.

substitute the value in the given equation and solve it ie 1+1+1-0.3 you will get the answer as 2.7 that is the value of e

f is the conditional statement.in this we are comparing a+b+c and d value.a+b+c is 3 and d value is 0.3.here 3 and 0.3 are not equal so false will be stored in f.

so if we print(e)

it will be executed as 2.7

and if we print(f)

it will be executed as false

Similar questions