Computer Science, asked by shivansh5291, 4 months ago

what would be the output of the following code? explain reason (s) A=3+5/8
B int(3 + 5/8)
C=3+ float(5/8)
D =3+ float(5)/8)
E= 3+5.0/7
F=int*3+5/8.0)
print (a,b,c,d,e,f)​

Answers

Answered by powarbaliram6
3

Answer:

73/55-4649/45 454

aaiavaaakauah. sa1/"2?5

sajsjsjdidi

Answered by amankatiyar362
1

Answer:

Name Error: name 'a' is not defined.

Explanation:

The following code shows name error because in variable name capital alphabet used but while calling variable names small alphabet used, and function treats small alphabet and capital alphabet as different.

Let's keep the typo error aside and use same variable names, then the answer would be,

A = 3.625 , B = 3 , C = 3.625 , D = 3.625 , E = 3.7142857142857144 , F = 3.625

Because, in A operator precedence used,

In B int operator used, and in C float operator used which does not makes any change same as in D,E and F.

#SPJ3

Similar questions