Print uppercase letters using for loop

C program to print all uppercase alphabets using for loop.

Program

#include<stdio.h>
#include<conio.h>
void main()
{
	char alpha;

    printf("Uppercase alphabets are\n");
    for(alpha='A';alpha<='Z';alpha++)
    {
        printf("%c ",alpha);
    }

    getch();
}

Output

Uppercase alphabets are
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