İ cant use variable in wire help

Hello everyone. İ want to change wire adress to my inputs condition.i tried but doesnt work.
Example
int value = 5;
....
....
Wire.begin(value); and
Wire.beginTransmission(value);
i want to change value in my sketch working with some condition.how can i do that?

You could post your code, and explain what "doesnt work" means.

i have solved .i need to use byte not int

bektasari:
i have solved .i need to use byte not int

That would make no difference at all.
What else did you change to make it work?