Write C program to print alphabets from a to z

Introduction

Write C program to print alphabets from a to z.

#include <stdio.h>

int main()
{
    char ch;

    printf("Alphabets from a - z are: \n");
    for(ch='a'; ch<='z'; ch++)
    {
        //Printing all alphabets with tab
        printf("%c\t", ch);
    }

    return 0;
}

Result

Write C program to print alphabets from a to z
Write C program to print alphabets from a to z

Leave a Comment