Computer Science, asked by tanishk32972, 8 months ago

Write the output for the following mathematical expressions:
a. 100**3
b. 100/3
c. 100%3
d. "100+3"
e. 100//3
f. "100"* 3​

Answers

Answered by CharlotteJulia
3

Answer:

1. 100*3 = 300

2. 100/3 = 33.33

4. 100+3 = 103

Explanation:

I don't know what does

** and % and // and''* mean. And how to work it out

Answered by anjalin
1

The output of the given expressions are:

100 * * 3=1000000

100 / 3=33.333333333333336

100 % 3=1

"100 + 3"="100 + 3"

100 / / 3=33

"100" * 3 = '100100100'

Explanation:

  • 100 * * 3

    " * * " operator is used for exponentiation. Here the output of 100 * * 3 will be displayed as 1000000

  • 100 / 3

   "/" operator is used for division. Here the output of 100 / 3 will be displayed as 33.333333333333336.

  • 100 % 3

   "%" operator is used for modulo function. Here the output of 100%3 will be displayed as 1.

  • "100 + 3"

    Any text entered under double or single quotes becomes a string. Here the output of "100 + 3" will be displayed as "100 + 3".

  • 100 / / 3

      " / / " operator returns the integer quotient after the division. Here the output of 100 / / 3 will be displayed as 33.

  • "100" * 3

     " * " operator if applied to the string, it concatenates the string. Here the output of "100" * 3 will be displayed as '100100100'.

Similar questions