C++

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

run opengl program in dev cpp
Digital Trends

How to run OpenGL freeglut program in Dev C++

In this article, you will learn how to run OpenGL freeglut program in Dev C++. You can create the new console base C++ project in Dev C++. Run OpenGL freeglut program in Dev C++ Go to “file” create a new project and select console base c++ project.  Below is the screenshot Don’t forget to add … Read more

install opengl freeglut in dev cpp
Digital Trends

How to install OpenGL freeglut in Dev C++

In this article, you will learn how to download and install OpenGL freeglut in Dev c++. OpenGL (Open Graphics Library) API is a set of functions that are used to render 2D and 3D vector graphics. You can use it in computer-aided designs, gaming, virtual reality, etc. Where to download OpenGL freeglut? You can download … Read more

Scroll to Top