Read a char and check it value
#include <stdio.h> int main(void) { char ch; ch = getchar(); if(ch < 'h') printf("character is less than h"); return 0; }