-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalphabet.c
More file actions
31 lines (30 loc) · 795 Bytes
/
Copy pathalphabet.c
File metadata and controls
31 lines (30 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* @file alphabet.c
* 18. Write a program to check whether a character is alphabet or not.
* @author Md. Alamin (alamin5g@yahoo.com)
* I would love be a software engineer at Google. That is why anybody can uses this code without any condition, if you face any difficulty, then try to email me.
* @version 0.1
* @date 2022-03-13
*
* @copyright Copyright (c) 2022
*
*/
#include <stdio.h>
void main()
{
char ch;
printf("Enter a character to assure it Alphabet or not: ");
scanf("%c", &ch);
if (ch >= 'a' && ch <= 'z')
{
printf("%c- is alphabetical character ", ch);
}
else if (ch >= 'A' && ch <= 'Z')
{
printf("%c- is alphabetical character ", ch);
}
else
{
printf("%c- is not alphabetical character ", ch);
}
}