aboutsummaryrefslogtreecommitdiff
path: root/c11/ex05/operators.c
blob: 4efba280d9bb3087e5dad43316be4784fa329ee1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   operators.c                                        :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: cacharle <charles.cabergs@gmail.com>       +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2019/07/17 07:38:59 by cacharle          #+#    #+#             */
/*   Updated: 2019/07/18 10:38:57 by cacharle         ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

int	add(int x, int y)
{
	return (x + y);
}

int	subtract(int x, int y)
{
	return (x - y);
}

int	multiply(int x, int y)
{
	return (x * y);
}

int	divide(int x, int y)
{
	return (x / y);
}

int	modulo(int x, int y)
{
	return (x % y);
}