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

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