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