C program to find LCM of two numbers
Example Input Input number1: 12 Input number2: 30 Output LCM = 60 LCM is a smallest positive integer that exactly divides two or more numbers. For Example
Learn to Code and Code to Learn
Your Journey to Code Mastery
Example Input Input number1: 12 Input number2: 30 Output LCM = 60 LCM is a smallest positive integer that exactly divides two or more numbers. For Example
Example Input Input first number: 12 Input second number: 30 Output HCF of 12 and 30: 6 HCF (Highest Common Factor) is the greatest number that divides exactly two or more numbers. HCF is also known as GCD (Greatest Common Divisor) or GCF (Greatest Common Factor).
Example Input Input number: 5 Output Factorial: 120
Example Input Input number: 12 Output Factors of 12: 1, 2, 3, 4, 6, 12
Example Input Input base: 2 Input exponent: 5 Output 2 ^ 5 = 32
Example Input Output ASCII value of character = 0 ASCII value of character ☺ = 1 … … ASCII value of character ■ = 254 ASCII value of character = 255
Example Input Input number: 1234 Output One Two Three Four
Example Input Input any number: 116540 Output Frequency of 0 = 1 Frequency of 1 = 2 Frequency of 2 = 0 Frequency of 3 = 0 Frequency of 4 = 1 Frequency of 5 = 1 Frequency of 6 = 1 Frequency of 7 = 0 Frequency of 8 = 0 Frequency of 9…
Read More “C program to count frequency of digits in an integer” »
Example Input Input any number: 121 Output 121 is palindrome Note: Palindrome number is such number which when reversed is equal to the original number. For example: 121, 12321, 1001 etc.
Example Input Input number: 12345 Output Reverse of 12345 = 54321