#include #include int mod(int num, int prime) { return num%prime; } //simple for loop that performs the mod function for numbers 0-10 int main() { int i, res; for(i=0; i<10; i++) { res = mod(i, 3); printf("%d\tres=%d\n", i, res); } system("pause"); }