View All C Programs

 Previews Example  View All C Programs Next Example 

Program to Display Character from A to Z Using Loop in c

This program uses loop to display character from A to Z.
#include <stdio.h>
int main()
{
    char c;
    for(c='A'; c<='Z'; ++c)
       printf("%c ",c);
    return 0;
}
Result
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