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. 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, etc. Automorphic Number Program … Read more

Fizz Buzz Program in C

In this tutorial, we will learn about Fizz Buzz Implementation in C programming. Let us start by understanding what Fizz Buzz is and its implementation in a program. Fizz Buzz Program A Fizz Buzz program prints the number from the range of 1 to n, where n is the input number taken from the user. … Read more

C Program for Pascal Triangle

In this tutorial, you will learn how to write a program to print Pascal’s Triangle in C. Before that you should be familiar with the following topic in C programming. Pascal’s triangle is one of the important examples that is taught to the student. The number outside Pascal’s triangle is zero (0), which is not … Read more

C Program to Check Armstrong Number

In this C programming example, we will write a program to check Armstrong Number in C. We will start with Armstrong Number. Before that, you should have knowledge of the following topics in C programming. What is an Armstrong Number? A number is said to be an Armstrong Number if even after the sum of … Read more