Knowledge Quiz
Test your understanding of this article
1.In the 'Sum of Digits' example, what is the purpose of the expression 'num % 10' inside the `while` loop?
2.Consider the 'Count of Digits' example. If the initial value of 'num' is 56789, what will be the final value of 'count'?
3.In the 'Reverse a Number' example, what role does 'rev = rev * 10 + num % 10;' play in reversing the number?
4.What is the common operation performed on the 'num' variable in all three examples ('Sum of Digits', 'Count of Digits', 'Reverse a Number') within their respective `while` loops?
