Program:
Explanation:
#include<stdio.h>
main()
{
int i;
for(i=97;i<=122;i++)
{
printf("%c",i);
}
printf("\n");
}
- Here we declared an integer i.
- Now this program is same as printing numbers from 97 to 122.
- But if you can remember the "ASCII" values of 97 which resembles 'a' and 122 which resembles 'z' as in ascii sheet. To refer ASCII Values click here.
- So instead of "%d" if we use "%c" it is converted to ascii value.



