C Program to display a-z characters using While loop

C Program to display a-z characters using While loop

Write C Program to display a-z characters using While loop

//WAP to display a-z characters using while loop

#include <stdio.h>

int main()
{
	printf("For small letter:-->");
	char i = 97;

	while ( i <= 122)
	{
		printf("%c ",i);
		i++;
	}

	printf("\nFor Capital letter:-->");
	char j = 65;

	while ( j <= 90)
	{
		printf("%c ",j);
		j++;
	}
	return 0;
}

Output:

For small letter :-->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
For Capital letter :-->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