Write C program to print alphabets from a to z


Introduction

Write C program to print alphabets from a to z.



techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#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

C language

     





Related Topics




Popular Posts