operator java
Sale Price:$200.00
Original Price:$600.00
sale
n%10 means the modulus of 10, that is the remainder you get when you divide with 10. login operator dapodikdas Here it is used to get each digit Example: Say your number is n = 752 n%10 = 2, n/10 = 75 So you add 2 to the sumDigits (75) Now, n%10 = 75%10 = 5 This is the digit to be added and so on, till your n = 10
Quantity: