Encapsulate it in a function and call it twice.
void do_stuff() { // Do Stuff}// .....do_stuff();do_stuff();
Note: if you use variables or parameters of the enclosing function in the stuff logic, you can pass them as arguments to the extracted do_stuff
function.