To show current Date and Time in a program just use “localtime()” function. Calculation of day, month and year is explained. PROGRAM:

## C++ Program to find factorial of a Number

What is Factorial of a number? Factorial of a number ‘n’ is the product of all positive integers less than or equal to n, denoted by ‘n!’. For example find factorial of 5. Now let’s see the program to find factorial of a number in C++ PROGRAM: Sample Output:

## Program to Find Armstrong Number C++

Here we write a program to find whether the given number is Armstrong number C++ or not. First let’s start with what is Armstrong number? What is Armstrong number: A number is Armstrong if the sum of cubes of individual digits of a number is equal to the number itself. For example 371 is an […]

## C++ Program to find area of any triangle using Herons Formula

C++ Program to find area of any triangle using Herons Formula PROGRAM: OUTPUT:

## Program to implement Bubble Sort in C++

Here we will write a program to implement Bubble Sort in C++, first we will learn what is Bubble sort then we will write the C++ code for the same. What is Bubble Sort? Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to be […]

## Program to find Perfect Number C++

Here we will write a program to check whether the number is a Perfect number C++. So, first lets start with what is a perfect number. What is a Perfect number: Perfect Number is a number in which sum of all its positive divisors excluding that number is equals to the number. For example: […]