C program to print alphabets is basic c programs for beginners. We simply print all the alphabets from A to Z using the loop.

Algorithm to print alphabets

  1. Declare a character variable. C
  2. Write loop to print alphabets
    for(char c = ‘a’ ; c <= ‘z’ ; c ++)
    print alphabet. C

C program to print alphabets

# include<stdio.h>
void main()
{
char c;
for(char c = 'a' ; c <= 'z' ; c ++)
{
printf("%c\t",c);
}
}

Output:

C program to print alphabets

Write A Comment