Some important symbols used in code.
- () small bracket
- && use for ‘and’ use for address
- {} curly bracket
- “” double code
Print capital letter..

- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- char ch;
- int a, b, c;
- clrscr();
- printf(“print upper case ‘A to Z‘ \n”);
- for(a=65;a<=90;a++)
- {
- printf(“%c”, a);
- }
- getch();
- }
Results..

print small letter….

- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- char ch;
- int a, b, c;
- clrscr();
- printf(“print ‘lower’ case ‘A to Z‘ \n”);
- for(a=97;a<=122;a++)
- {
- printf(“%c”, a);
- }
- getch();
- }
Results..

Print ‘capital’ & ‘small’ letter using ‘for’ loop..

- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- char ch;
- int a, b, c;
- clrscr();
- printf(“print upper case ‘A to Z‘ \n”);
- for(a=65;a<=90;a++)
- {
- printf(“%c”, a);
- }
- printf(“/n print lower case ‘a to z’ \n”);
- for(b=97;b<=122;b++)
- {
- printf(” %c”, b);
- }
- getch();
- }

Results..

Print ‘capital’ & ‘small’ letter using ‘while’ loop..

- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- char ch;
- int a, b, c;
- clrscr();
- printf(“print upper case ‘A to Z‘ \n”);
- a=65;
- while(a<=90)
- {
- printf(“%c”, a);
- a++;
- }
- printf(“/n print lower case ‘a to z’ \n”);
- b=97;
- while(b<=122)
- {
- printf(” %c”, b);
- b++;
- }
- getch();
- }


Print ‘capital’ & ‘small’ letter using ‘do while’ loop..
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- char ch;
- int a, b, c;
- clrscr();
- printf(“print upper case ‘A to Z‘ \n”);
- a=65;
- do
- {
- printf(“%c”, a);
- a++;
- }
- while(a<=90);
- printf(“/n print lower case ‘a to z’ \n”);
- b=97;
- do
- {
- printf(” %c”, b);
- b++;
- }
- while(b<=122);
- getch();
- }
Results..
Given above…

