Функции

#include <iostream>
using namespace std;

void add3AndPrint(int value) {
    cout << value + 3;
}

add3AndPrint(5);