In this program, you will learn to display capital letters characters from A to Z. This example uses for loop to print letters by converting ascii numbers.
Example: Display Characters From A to Z
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#include<stdio.h> //execution starts from main int main() { int i; //loop run from A = 65 to Z = 90 for(i = 65; i <= 90; i++) { //print ascii numbers in char printf("%c\n",i); } //exit status return 0; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
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 |