Number Operations Extracting the Last Digit of a Number Operation: num % 10 Explanation: The modulo operation returns the last digit of a number. Example: val num = 123 val lastDigit = num % 10 // lastDigit will be 3 Potential Use: Palindro...
Fundamentals Fundamentals of Problem Solving Basics Positive or Negative number Even or Odd number Sum of First N Natural numbers Sum of N natural numbers Sum of numbers in a given range Greatest of two numbers Greatest of the Three numbers...