diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-07-19 07:04:04 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-07-19 07:04:04 +0200 |
| commit | 8b6e91bdb56bc01a588718472546f2a88e750b48 (patch) | |
| tree | 654ba9e8216c688bb3d6a2e5d67526ae8ec4b874 /c11/ex05/operators.c | |
| parent | 880102ae9358db130ef67cc9a7177a1e1de76875 (diff) | |
| download | piscine-8b6e91bdb56bc01a588718472546f2a88e750b48.tar.gz piscine-8b6e91bdb56bc01a588718472546f2a88e750b48.tar.bz2 piscine-8b6e91bdb56bc01a588718472546f2a88e750b48.zip | |
c10 done?, c11 moulinetted (ex04, ex06 need correction)
Diffstat (limited to 'c11/ex05/operators.c')
| -rw-r--r-- | c11/ex05/operators.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/c11/ex05/operators.c b/c11/ex05/operators.c index c138be3..4efba28 100644 --- a/c11/ex05/operators.c +++ b/c11/ex05/operators.c @@ -6,33 +6,31 @@ /* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/07/17 07:38:59 by cacharle #+# #+# */ -/* Updated: 2019/07/17 08:03:34 by cacharle ### ########.fr */ +/* Updated: 2019/07/18 10:38:57 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ -int add(int x, int y) +int add(int x, int y) { return (x + y); } -int subtract(int x, int y) +int subtract(int x, int y) { - return (x - y); } -int multiply(int x, int y) +int multiply(int x, int y) { - return (x * y); } -int divide(int x, int y) +int divide(int x, int y) { return (x / y); } -int modulo(int x, int y) +int modulo(int x, int y) { return (x % y); } |
