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
Post a Comment