Dilip PatelforDilip Patel's Kotlin blogkotlinmastery.hashnode.dev·Nov 7, 2024Fundamentals of Problem SolvingNumber 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...DiscussDSAKotlin
Dilip PatelforDilip Patel's Kotlin blogkotlinmastery.hashnode.dev·Nov 7, 2024DSA With KotlinFundamentals 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...DiscussDSADSAinkotlin