c++ function inside main

#include <iostream>

void myFunction() {
    std::cout << "Inside myFunction" << std::endl;
}

int main() {
    std::cout << "Hello, this is the main function." << std::endl;
    myFunction();
    std::cout << "Back to the main function." << std::endl;
    return 0;
}