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=65;i<=90;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

Introduction of C-language.

Variable & Datatype for C-programming

Program to see all ASCII value using for loop in C-language

Errors in C-language

Program to find the sum of two array into the third in C-language

Program to cheque enter number is even or odd in c-language

Program to show present time and date in C-language

Binary searching in C-language

Syntax of C-language