because of newline character already in stdin , this is happening. use
scanf(" %c", &cont);
instead of
scanf("%c", &cont);
note one space before %c.
2.1m questions
2.1m answers
60 comments
57.0k users