C++ Program to display A to Z alphabets using ASCII values
In this program, You will learn how to display A to Z alphabets using ASCII values in C++.
int i = 65;
char ch = char(i);
Example: How to display A to Z alphabets using ASCII values in C++.
#include<iostream>
using namespace std;
int main() {
int i;
for (i = 65; i < 91; i++) {
cout << char(i) << " ";
}
return 0;
}
Output:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z