User Defined Function in C

In this tutorial, we will learn abt the user-defined function in C programming language. Let us start by understanding what is user-defined function in C. A function refers to a block of code that performs a specific task. User-defined functions are the ones that are defined by the users according to their needs and they … 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

Sunny Number Program in C++

In this tutorial, we will write a C++ program to check for sunny numbers. 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 and as 3 … 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

Happy Number Program in C++

In this tutorial, we will write a C++ program to check happy number. 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 of the digits of its results. … 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

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