How i can save value from keypad in the variable value "x" ??

I have project"thermostat" and i don't Konw How i can save value from keypad in the variable value "x" (int x;)

the value Consisting of double-digit ??

Please, you must show us your work. Attach your code using the </> icon on the left side of the posting menu.
Put your sketch between the code tags [code]Paste your sketch here[/code]
What keypad are you using?
What will this be used for?

Have you looked at tutorials on ‘Arduino keypad’ ?
Here

.

I do it like this

x = thermostatGetValue();

although YMMV, we wouldn't know because you have not provided any code or data on the device you are using.

Store the two digits in a 3 character array; the last character must be '\0'. Next you e.g.can use atoi() to convert to an integer.

AnasMaali: I have project"thermostat" and i don't Konw How i can save value from keypad in the variable value "x" (int x;)

the value Consisting of double-digit ??

Int(egers) goes from about -32000 to +32000, so your double digit value fits nicely.

x=keypad.getKey();

Maybe your problem is that you get a char (ascii value) from your keypad? That is 30-39 if hex value, or 48-57 if you get decimal value.