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]
C++ Program to Display the Number Entered by User
This program takes the number entered by user using cin statement and prints it using cout statement Example: Program to display the number entered by… [Read More]
C++ Program to find second Largest element in an array
This program finds the second largest element in an array. The program asks the user to enter the value of n, which is the number… [Read More]
C++ Program to Find largest element in an array
This program finds the largest element in an array. User is asked to enter the value of n(number of elements in array) then program asks… [Read More]
C++ Program to Find Second Smallest Element in an Array
In this program we ask the user to enter the size of array (number of elements). Then user would be asked to enter all the… [Read More]
C++ Program to Find Smallest Element in an Array
You are given an integer array and you are asked to find the smallest (minimum) element of the array. This program asks the user to… [Read More]
C++ Program to find the Missing Number
We are given a list of numbers in increasing order, but there is a missing number in the list. We will write a program to… [Read More]
Friend Class and Friend Functions in C++
As we know that a class cannot access the private members of other class. Similarly a class that doesn’t inherit another class cannot access its… [Read More]
- « Previous Page
- 1
- …
- 84
- 85
- 86
- 87
- 88
- …
- 150
- Next Page »