mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 04:22:22 +00:00
18 lines
309 B
C
18 lines
309 B
C
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>.
|
|
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
|
|
|
#include "number.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
int main() {
|
|
int a = 10;
|
|
int b = 5;
|
|
int c = 12;
|
|
|
|
int x = number_add_mod(a, b, c);
|
|
printf("(%d+%d)%%%d = %d\n", a, b, c, x);
|
|
|
|
return 0;
|
|
}
|