1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 20:47:11 +00:00
2018-12-16 12:36:29 +08:00

20 lines
356 B
C

// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>.
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
#include "main.h"
#include "./number/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);
goPrintln("done");
return 0;
}