C Exercises: Check a number is a Happy or not
Write a program in C to determine whether a number is Happy or not.
Test DataInput a number: 13
Sample Solution:
C Code:
Sample Output:
Input a number: 13 13 is a Happy number.
Visual Presentation:
Flowchart:

C Programming Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a program in C to display the first 10 catlan numbers.
Next: Write a program in C to find the happy numbers between 1 to 1000.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics