1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
/* vim: set tabstop=4 shiftwidth=4 fileencoding=utf-8 noexpandtab: */
#include <stdio.h>

int add5(int n); // FORWARD DECLARATION

int main(int argc, char *argv[]) {
    // TEST CASE #1:  5 + 5 = 10
    printf("%d + 5 = %d\n", 5, add5(5));

    // TEST CASE #2: 5 + 4 = 9
    printf("%d + 5 = %d\n", 4, add5(4));
    return 0;
}

© Copyright 2016 Alexander J. Quinn         This content is protected and may not be shared, uploaded, or distributed.