An integer number is known as Armstrong number if the sum of cubes of its individual digits is equal to the number itself. Here we… [Read More]
C++ Program to Check Armstrong Number using user-defined function
An integer number is called Armstrong number if sum of the cubes of its digits is equal to the number itself. For example, 371 is… [Read More]
C++ Program to check Armstrong Number
An integer number is called Armstrong number if sum of the cubes of its digits is equal to the number itself. For example: 370 is… [Read More]
C++ Program to check whether the input number is Even or Odd
An integer number which is evenly divisible by 2 is called even number. When I say evenly divisible, it means that if we divide the… [Read More]
C++ Program to display prime numbers from 1 to 100 and 1 to n
In this tutorial, we will see two programs 1) First program prints prime numbers from 1 to 100 2) Second program takes the value of… [Read More]
C++ Program to Check Prime Number using Function
A number which is only divisible by itself and 1 is known as prime number. For example 13 is a prime number because it is… [Read More]
C++ Program to Check whether an input number is Prime or not
A number which is only divisible by itself and 1 is known as prime number, for example: 5 is a prime number because it is… [Read More]
C++ Program to Check Leap Year using function
This program takes the value of year(entered by user) and checks whether the input year is Leap year or not. The steps to check leap… [Read More]
C++ Program to Find the sum of n natural numbers using Recursion
The numbers 1, 2, 3,…, n are known as natural numbers. This program takes the value of n (entered by user) and prints the sum… [Read More]
C++ Program to find the sum of n natural numbers
Numbers 1, 2, 3, …., n are known as natural numbers. This program takes the value of n and finds the sum of first n… [Read More]