1st Half / 2nd Half Alphabets

C code:

------------------

#include<stdio.h>
#include <stdlib.h>

int main()
{
char c,c1;
scanf("%c",&c);
c1=tolower(c);
if(c1>='a'&&c1<='m')
printf("1st half");
else
printf("2nd half");
}

Comments

Popular posts from this blog

Fisherman's Mantra

N Integers – Sum S – All Combinations(Weekly Test)

First & Last X Digits