A character is taken from user and is checked if it is in UPPER CASE or lower case..
Select To use this code as it is.. select and copy paste this code into code.cpp file :)
- #include<iostream.h>
- #include<conio.h>
- void main()
- {
- clrscr();
- char x;
- cout<<"Please enter a character: ";
- cin>>x;
- //Coding by: Snehil Khanor
- //http://WapCPP.blogspot.com
- if(x>='A'&&x<='Z')
- cout<<x<<" is in UPPER CASE:)";
- else
- cout<<x<<" is in lower case :)";
- getch();
- }
0 comments:
Post a Comment