By: Prof. Dr. Fazal Rehman | Last updated: February 11, 2025
C++ Program to Display English Alphabets from A-Z
ExplanationIn which program we will display English language alphabet A to Z in C++ programming using a do-while loop. This program is very basic in which firstly we will initialize char with ‘A’ and print using loop increment in char data type from A until condition meets the equal to ‘Z’ char.
Solution:
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<iostream>
usingnamespacestd;
intmain()
{
charcharacter='A';
do
{
cout<<character<<" ";
character++;
}
while(character<='Z');
cout<<endl;
return0;
}
Output:Display English Alphabets in C++write a c program to print all alphabets from a to z using do-while loopwrite a C++ program to display all the uppercase letters using a while loopalphabets from a to z C++