What will be the output if a=10 b=3 for (i)a=a/b (ii)a2=a%b
Answers
Answered by
0
Answer:
sorry I can't find the answer
Answered by
0
for the output will be 3.
for 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%b will be 10%3 which is 1
- So
- That implies a value of a will be 1
- Hence the output will be 1.
Similar questions
Social Sciences,
2 months ago
English,
2 months ago
English,
6 months ago
Science,
6 months ago
Chemistry,
11 months ago