While Loop Programming

While Loop Programming

  1. Write a program to count the number of digits in a number
  2. Write a program to find the first and last digit of a number
  3. Write a program to find the sum of a number’s first and last digits.
  4. Write a program to swap the first and last digits of a number
  5. Write a program to calculate the sum of digits of a number
  6. Write a program to calculate the product of digits of a number
  7. Write a program to enter a number and print its reverse
  8. Write a program to check whether a number is a palindrome.
  9. Write a program to find the frequency of each digit in a given integer
  10. Write a program to enter a number and print it in words.
  11. Write a program to check whether a number is an Armstrong number.
  12. Write a program to print all Armstrong numbers between 1 to n.
  13. Write a program to check whether a number is a Strong number or not
  14. Write a program to print all Strong numbers between 1 to n