# A program that read any upper case character and display in lower case
1. #include<stdio.h>
2. #include<conio.h>
3.
4. void main()
5. {
6. char n;
7.
8. clrscr();
9. printf("Enter any upper case character: ");
10. scanf("%c",&n);
11.
12. printf("%c",n+32);
13. getch();
14. }
2. #include<conio.h>
3.
4. void main()
5. {
6. char n;
7.
8. clrscr();
9. printf("Enter any upper case character: ");
10. scanf("%c",&n);
11.
12. printf("%c",n+32);
13. getch();
14. }
No comments:
Post a Comment