( ( ++j + 5) + j ) % 6 if j=5
Answers
Answered by
2
Answer:
Step-by-step explanation:
j=5
((6+5)+6)%6(++j=6 because we have increment the value before printing it as ++j is an pre-increment operator.After increasing the value,now the final value of j is 6 and now we’ll use only 6 as the value of j in further equation)
(11+6)%6
17%6(Here % is the sign of modulus which is used to calculate the reminder after dividing the digits)
5(So after dividing 17 by 6,we get the reminder as 5)
Step-by-step explanation:
j=5
((6+5)+6)%6(++j=6 because we have increment the value before printing it as ++j is an pre-increment operator.After increasing the value,now the final value of j is 6 and now we’ll use only 6 as the value of j in further equation)
(11+6)%6
17%6(Here % is the sign of modulus which is used to calculate the reminder after dividing the digits)
5(So after dividing 17 by 6,we get the reminder as 5)
Similar questions