something like this:
int x, y , z; // zero initialized by the compiler
void reset2Defaults() {
x = 3;
y = 6;
z = 9;
}
void setup() {
reset2Defaults();
...
}
void loop() {
...
}
and in the loop, when you want to revert to the defaults, you call reset2Defaults()