Functions allow you to break your code into reusable blocks.

#include <iostream>

using namespace std;

// Function declaration
void greet() {
    cout << "Hello! Welcome to the world of programming." << endl;
}

int main() {
    greet(); // Function call
    return 0;
}