#include <stdio.h>

void incrementByTwo(int *value1, int *value2);

void main() {
    int value1 = 5, value2 = 2;
    printf("the result of %d and %d is", value1, value2);
    
    incrementByTwo(&value1, &value2);
    printf(" %d and %d", value1, value2);
}

void incrementByTwo(int *value1, int *value2) {
    *value1 += 2;
    *value2 += 2;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: