Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS
- #include <math.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <conio.h>
- void main()
- {
- char strLetter = "";
- char strLowerCaseLetter = "";
- do
- {
- printf("%c", strLetter);
- printf("Please enter an uppercase letter. \n");
- scanf("%c", &strLetter);
- if (strLetter >= 'A' && strLetter <= 'Z')
- {
- strLowerCaseLetter = strLetter + 32;
- printf("Here is the letter in uppercase: %c. Here is the letter in lowercase: %c.", strLetter, strLowerCaseLetter);
- }
- } while (strLetter < 'A' || strLetter > 'Z');
- }
Advertisement
Add Comment
Please, Sign In to add comment