C program to find all factors of a number
Example Input Input number: 12 Output Factors of 12: 1, 2, 3, 4, 6, 12
Learn to Code and Code to Learn
Your Journey to Code Mastery
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
Example Input Input any number: 1234 Output Sum of digits: 10
Example Input Input number: 1234 Output First digit: 1 Last digit: 4
Example Input Input num: 35419 Output Number of digits: 5 Program to count number of digits without using loop