Program : Check Whether Entered Character is Uppercase Letter or Not Without using Library Function.
Way 1 :
#include<stdio.h> void main() { char ch; int i; clrscr(); printf("\nEnter The Character : "); scanf("%c",&ch); if(ch>='A' &&ch<='Z') printf("\nCharacter is Uppercase Letters"); else printf("\nCharacter is Not Uppercase Letters"); getch(); }
Way 2 :
#include<stdio.h> void main() { char ch; int i; clrscr(); printf("\nEnter The Character : "); scanf("%c",&ch); if(ch>=65 && ch<=90) printf("\nCharacter is Uppercase Letters"); else printf("\nCharacter is Not Uppercase Letters"); getch(); }
Output :
Enter The Character : A Character is Uppercase Letters
Program Under Section : String Programs
Incoming search terms:
- change the case of each character without using library functionin string in c (4)
- c program to check whether given input is in uppercase or not (1)
- check if entered string is in uppercase using java (1)
- check whether a character is uppercase or not in javascript (1)
- how can we check a string is in uppercase in android (1)
- how to check given string is uppercase or not in java (1)