Programs

C++ program to add two numbers using a function

In this article, you will learn a C++ program to add two numbers using a function. The following function takes two numbers as an argument from the user and returns the sum. A function in C++ is a unique named block of code to perform a specific task. A good thing about the function is … Read more

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

Cloud Computing, Tutorials

Python Constants

In this article, you will learn about python constants. A constant is an identifier whose value cannot change throughout the program execution. On the other hand, the variable concept is the same as you studied in mathematics. Variable values keep changing while constant’s values are fixed. In python, you cannot use constants as used in … Read more

python identifiers
Tutorials

Python identifiers an Introduction

In this article, you learn about Python identifiers. In Python, identifiers are the names given to identify variables, functions, classes, modules, etc. Identifiers are like the names that your parents gave you for your identification. Similarly, in Python programming, a programmer can write identifiers to identify different objects. Example 1: Python identifiers In the above … Read more

keywords in python
Tutorials

Python Keywords An Introduction

In this article, you will learn about Python keywords. These are the pre-defined reserve words in Python. Each keyword has its own specific identity and assigned task.   In Python, these keywords cannot be used as variable names, function names, and other identifiers. If we use them as variables the Python interpreter treats them as keywords. … Read more

Scroll to Top