C Program to Print all Alphabets From a to z Using For Loop
Q:- Write a C Program to Print all Alphabets From a to z Using For Loop
?
Input
#include<stdio.h>
#include<conio.h>
main()
{
char ch;
clrscr();
printf(“Alphabets From a to z are =”);
for(ch=’a’;ch<=’z’;ch++)
{
printf(“%c\t”,ch);
}
getch();
}
Output
Alphabets
From a to z are = 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