Search This Blog

Wednesday, 16 November 2016

C Program to Display Characters from A to Z Using Loop

#include <stdio.h>
int main()
{
    char c;

    for(c = 'A'; c <= 'Z'; ++c)
       printf("%c ", c);
    
    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

No comments:

Post a Comment