ii.
Write the output for the following mathematical expressions:
b. 100/3
a. 100**3
c. 100//3
d. 100%3
e. "100+3"
f. "100"* 3
Answers
Answered by
2
Hey! This is in python...
b. 100/3
a. 100**3
c. 100//3
d. 100%3
e. "100+3"
f. "100"* 3
Outputs:
b. 33.3 (Division of 100 by 3)
a. 1000000 ('**' represents power)
c. 33.2 ('//' same as '/')
d. 1 ('%' represents remainder of the division)....100 ÷ 3 = 33, 1
e. "100+3" (This is a string...so it gives output as a string)
f. 100100100 (Displays the string(100) three times)
#Hope this helps!!
Similar questions