Programs

Programs

C++ program to check the alphabet

In this article, you will learn a C++ program to check the alphabet. This program takes any character from the user and the program tells whether the entered character is an alphabet or not. Here we discuss two different approaches to checking the alphabet in C++. Using the if-else statement Using ASCII values Let’s check … Read more

Programs

C++ program to check vowels

In this article, you will learn a C++ program to check vowels. There are 5 vowels in the English language that are A, E, I, O, and U. These letters have vocal sounds open and without friction. This program asks the user to enter any character and display whether it’s a vowel or consonant. All … Read more

Programs

C++ program to divide multiply add and subtract two numbers

In this article, you will learn the C++ program to divide multiply add, and subtract two numbers. The program takes two numbers from the user and displays the result on the screen. If the user enters two numbers 10 and 2. The division, multiplication, addition, and subtraction of these two numbers will be 5, 20, … Read more

C++ program to calculate average and percentage
Programs

C++ program to calculate average and percentage

In this article, we will learn the C++ program to calculate average and percentage. Users enter the total number of subjects and their marks. The program displays its average and percentage. Program: Calculate the average and percentage of student grade Output Recommended Articles C++ For Loop C++ Operators

arithmetic mean in c++
Programs

C++ program to calculate the arithmetic mean

In this article, we will learn the C++ program to calculate the arithmetic mean. The arithmetic mean can be calculated by the sum of all the numbers divided by the total number count in a series. For Example, if we have a series of numbers 3, 6, 9, 2, 1. Its arithmetic mean will be … Read more

Programs

C++ program to add N numbers

In this article, we will learn the C++ program to add N numbers. For example, if the user sets n=5, the program will take 5 values from the user and add them. Example: C++ program to add N numbers Output Description and working of this program The system asks the user to set n numbers … Read more

Student Grade cpp
Digital Trends, Programs

C++ student grade program

In this article, you will a c++ program to calculate the student grade. This program asks the user to enter the subject marks the program calculates its grade and displays the result on the screen. Criteria to calculate student grades. Criteria Range Grade 90-100 A+ 80-89 A 70-79 B 60-69 C 50-59 D Below 50 … Read more

Star patterns in cpp
Digital Trends, Programs

C++ program to print star patterns

Star pattern programs are very popular in programming languages to understand looping concepts. In this article, we will learn the C++ program to print star patterns using steric and loops. Example 1: C++ program to print triangle or half pyramid Triangle or a half pyramid is actually a right-angle triangle constructed by using the steric … Read more

c++ program to interchange two numbers
Programs

C++ program to interchange two numbers

In this article, you will learn a C++ program to interchange two numbers. We can interchange two numbers by using the same technique as swapping. For this program, we will use a “temp” as a supporting variable to temporary hold the value. If we have two numbers 4 and 7, After interchange 7 becomes 4, … Read more

C++ program for linear search
Programs

C++ program for the linear search

In this example, you will learn the C++ program for the linear search algorithm. This program finds the position of the target value by comparing it with each element of an array. if there are six elements in an array i.e 5, 7, 2, 1,3, and 9. The user asks to find 1. The program … Read more

Scroll to Top