Print uppercase alphabets using while loop
C program to print all uppercase alphabets using a while loop.
Program
#include<stdio.h>
#include<conio.h>
void main()
{
char alpha;
alpha = 'A';
printf("Uppercase alphabets are\n");
while(alpha<='Z')
{
printf("%c ",alpha);
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