[ create a new paste ] login | about

Link: http://codepad.org/YGHzacn2    [ raw code | output | fork ]

Rituparnadatta - C, pasted on Sep 17:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//THE upper && lower case and useing else//              
#include<stdio.h>
int main (void)
{
char ch= 'W';   
if(ch>='a' && ch<='z')   
{
printf("this is lower case :%c\n",ch);
}
else 
{
printf("this is upper case :%c\n",ch);
}
return 0;
}


Output:
1
this is upper case :W


Create a new paste based on this one


Comments: