If I go to gym for 6 months, get a nice body and then do stop going, what would happen?

After 6 months, with just home exercises, can I keep the same body?

Or Do people have to go to gym for lifelong for having a good body?

If I go to gym for 6 months, get a nice body and then do stop going, what would happen?
Post Opinion