mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 20:52:22 +00:00
20 lines
356 B
C
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;
|
|
}
|