char is a single character, not a string, and %c is the format string for reading a single character.
Try defining x as an array of char instead (make sure it is large enough for the string you want to read) and use %s.

"Does not work" is not a very helpful description of the problem. What exactly did you input, and what exactly happened? There is no display so how do you know x doesn't contain what you put into it?