C Program to sort a String in Ascending order

In this tutorial, we will write a c program to sort a string array in ascending order. Before that, you may go through the following topics in C C Program to sort a String in Ascending order Output: Enter the string: programs After sorting, the string appears:agmoprrs

Keith Number Program in C

In this tutorial, we will write a Keith number in C. It is one of the most asked questions in an interview. Before that, you may go through the following topic in C programming. What is Keith Number? A positive n digit number x is called a Keith number or repfigit number (repetitive Fibonacci-like digit) if … Read more

Fascinating Number Program in C

In this tutorial, we will write a C program to check whether the given number is a Fascinating number or not. You may go through the following topics first in C. What is Fascinating Number? A number is said to be a fascinating number if it is (having at least 3 digits) multiplied by 2 … Read more

Peterson Number in C

In this tutorial, we will learn about the Peterson number and check if the number is Peterson or not in C. What is Peterson Number? A number is said to be a Peterson number if the sum of factorials of each digit of the number is equal to the number itself. Peterson numbers examples: Number … Read more

Sunny Number Program in C

Let us go through a C program to check whether the number is Sunny Number or Not. What is Sunny Number? A number N is said to be a sunny number if the number next to the given number (N+1) is a perfect square. Example: Let us take a Number 8, then the next number is 8+1=9 … Read more

Happy Number Program in C

In this tutorial, we will write a C program to check if the number is happy number or not. Let us start by defining a happy number. Happy Number A number is said to be a happy number if it yields 1 after a few steps and each step is the sum of the squares … Read more

Automorphic Number Program in C

In this article, we will write a C Program for Automorphic Number. The following C programming topic is used in the program below. while loop if..else statement A number is said to be an automorphic number if the square of the given number ends with the same digits as the number itself. Example: 25, 76, 376, … Read more