Computer Science, asked by gunasree92, 6 months ago

What will be the output if a=10 b=3 for (i)a=a/b (ii)a2=a%b​

Answers

Answered by mogankeerthana
0

Answer:

sorry I can't find the answer

Answered by anjalin
0

for a=a/b the output will be 3.

for a^2=a \% b the output will be 1.

Explanation:

  • Given that values of a and b are 10 & 3 respectively.
  • The first option is to find a/b
  • a / b will be 10 / 3 which is a floating-point number but as a is an integer, the function will round it to an integer value and make it an integer value 3.
  • So output that will be generated is 3.
  • Second is  a^2=a \% b
  • a%b will be 10%3 which is 1
  • So  a^2=a \% b  = 10\%3 = 1
  • That implies a value of a will be 1
  • Hence the output will be 1.
Similar questions