An Armstrong Number is a number that when you raise each digit of the number to the power of the...
Tag - C++ Examples
Find the perfect numbers between 1 and 10000 in C++
Write a program in C++ to find the perfect numbers between 1 and 10000. #include <iostream>...
C++ Program to Find Perfect Number
Here we will learn how to program using C++ in order to find the perfect number. A Perfect Number...
Print Half Pyramid Patterns of Numbers in C++
Programs for printing pyramid patterns in C++ C++ Code: #include <iostream> using...
C++ Programs Examples with Output
C++ is one of the most powerful and high-level programming language. The main purpose of C ++...
Division Without Using Divide Operator in C++
This program allows to simulate the operation of an integer division between 2 positive integers a...
Generate Random Date using C#
This example generates random date between Jan 1 1995 and the current date. Code: using System;...
C++ Program to Calculate the Power of a Number Using pow Function
In this program, we use C++ Math.pow() function to calculate the power of the given base. C++...
C++ Program to Calculate the Power of a Number Using For Loop
In this example, i’ll show you How to Calculate power of a number using a for loop in C++...
C++ Program to Calculate the Power of a Number Using While Loop
In this program, base and exponent are assigned values 3 and 4 respectively. Using the while loop...