frens, i am new to c programming and am having problem how to handle two inputs seperately by scanf() or getchar().

I mean, I want to get Y or N first time, and then, i again, i want know whether the value is h ( high) or l (low) if the answer is N.

do you any idea?
Code:
while((response=getchar())!='y')
{
    printf("h or l");
    getchar(ch);
    if(ch=='h')
           do something;
    else
         do something;
    printf("Y or N");
}
Am i missing something here?