Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int isLower(char sym){
- if(sym >= 'a' && sym <= 'z'){
- printf("Yes");
- }else{
- printf("No");
- }
- }
- int isUpper(char sym){
- if(sym >= 'A' && sym <= 'Z'){
- printf("Yes");
- }else{
- printf("No");
- }
- }
- int isLetter(char sym){
- return isLower(sym) || isUpper(sym) ? "Yes" : "No";
- }
- int main(){
- printf("%c\n", isLower('3'));
- printf("%c\n", isUpper('B'));
- printf("%c\n", isLetter('f'));
- return 0;
- }
Add Comment
Please, Sign In to add comment