Program to print a to z in C-language

                                Method-1

#include<stdio.h>
int main()
{
    char i;
    printf("a to z is\n");
    for(i=97;i<=122;i++)
    {
        printf("%c ",i);
    }
}
                            Method-2

#include<stdio.h>
int main()
{
    char i;
    printf("a to z is\n");
    for(i='a';i<='z';i++)
    {
        printf("%c ",i);
    }
}

OUTPUT
a to z is
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 

Comments

Popular posts

Creative pattern of butterfly in C-language

Program to show present time and date in C-language

Introduction of C-language.

Program to cheque enter number is a perfect number or not using if else in C-language

Program to cheque four digits number is palindrome or not in C-language

Program to print the cube of a number in c-language

Simple Hello world program in c- language