Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,225 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,022 people online right now. Registration is fast and FREE... Join Now!




to check whether character is uppercase or lower case in c

 
Reply to this topicStart new topic

to check whether character is uppercase or lower case in c

mohit2412
post 13 Mar, 2008 - 05:28 AM
Post #1


New D.I.C Head

*
Joined: 13 Mar, 2008
Posts: 2

to check whether character is uppercase or lower case in c
User is offlineProfile CardPM

Go to the top of the page

Nykc
post 13 Mar, 2008 - 05:33 AM
Post #2


sudo rm -R /

Group Icon
Joined: 14 Sep, 2007
Posts: 4,018



Thanked 12 times

Dream Kudos: 275
My Contributions


No need to double post. Also -

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Happy Coding! smile.gif
User is offlineProfile CardPM

Go to the top of the page

divi
post 19 Sep, 2008 - 05:26 AM
Post #3


New D.I.C Head

*
Joined: 18 Sep, 2008
Posts: 3

QUOTE(mohit2412 @ 13 Mar, 2008 - 06:28 AM) *

to check whether character is uppercase or lower case in c

-------------------------------------
cpp
#include<stdio.h>
main()
{
char a;
printf("Enter a word");
scanf("%s",&a);
if(a>=97&&a<=122)
{
printf("The word is in lowercase",a);
}
else
{
printf("The word is in UPPERCASE");
}
getch();
}

--------------------------------------------
NOTE: 97 AND 122 ARE ASCII VALUES FOR LOWERCASE ALPHABETS

MOD EDIT: Please code.gif
User is offlineProfile CardPM

Go to the top of the page

gabehabe
post 19 Sep, 2008 - 06:03 AM
Post #4


Working Girl.

Group Icon
Joined: 6 Feb, 2008
Posts: 5,402



Thanked 94 times

Dream Kudos: 2625

Expert In: Dingleberries

My Contributions


I think just posting that code in this thread would've been sufficient, you didn't need to create a seperate thread.
User is offlineProfile CardPM

Go to the top of the page

JackOfAllTrades
post 19 Sep, 2008 - 06:35 AM
Post #5


D.I.C Addict

Group Icon
Joined: 23 Aug, 2008
Posts: 502



Thanked 44 times

Dream Kudos: 25
My Contributions


Even better, the code is wrong! biggrin.gif
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/21/08 09:01PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month