Neon Number in C++

In this tutorial, we will write a neon number program in Cpp. We will write two different programs. Check for neon number Display the neon number within the range Neon Numbers A number is said to be a neon number if the sum of the digits of a square of the number is equal t … Read more

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. C++ for loop C++ while loop C++ if..else statement What is Keith Number? A positive n digit number x is called … Read more

Singly linked list Program C++

In this tutorial, we will write a C++ program to implement singly linked list. In this program, we will create a separate function for each operation that is to be performed in a linked list. This operation includes: create() insert(): this includes insetion at the begining, at the end or at a given position. delet() … Read more

Peterson Number in C++

In this tutorial, we will learn about the Peterson number and write a C++ program to check if the given number is a Peterson number or not. 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 … 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 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

C++ Program to Write Date into a File

In this tutorial, we will write a C++ program to write data into a file and store the information. In order to understand the program, you should have knowledge of the following topic in C++. C++ Files I/O Explanation: First, the program asks the user to enter the name of the file where they want … Read more

C++ Program to Read a File

In this tutorial, we will write a C++ program to read a file and display its contents. In order to understand the program, you should have knowledge of the topic in C++ below. C++ Files I/O Before writing a program: To read a file using C++ program, you first need to create a file and … Read more

C++ Program to Find Largest of Two Numbers

In this tutorial program, we will write a program to find the largest of two numbers in C++. We will discuss few ways to do so. We will check two ways: Using if-else satement Using conditional operator. To understand the program better, you should have knowledge of the following topics in C++. C++ if else … Read more