Question 9
Consider the below C program.
The above C program is used to calculate the sum of individual digits of a number. For ex: If the value given to the variable “n” is 25, the sum of individual digits will be 7.
Fill in the placeholders “Expression1” and “Expression2” to ensure that the program functions correctly.
Expression1: r = n % 10;
Expression2: n = r;Expression1: r = n / 10;
Expression2: n = n % 10;Expression1: r = n % 10;
Expression2: n = n / 10;Expression1: n = n % 10;
Expression2: r = n;