0
0
This commit is contained in:
2021-08-18 08:58:13 +02:00
parent 8a4d0c604e
commit 42ec1c77f8
10 changed files with 206 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ex02.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tkondrac <tkondrac@student.42lausan> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/11 12:07:52 by tkondrac #+# #+# */
/* Updated: 2021/08/11 12:15:32 by tkondrac ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
#include "../ex02/ft_iterative_power.c"
int main(void)
{
printf("expected : 125 | result : %d\n", ft_iterative_power(5, 3));
printf("expected : -125 | result : %d\n", ft_iterative_power(-5, 3));
printf("expected : 1 | result : %d\n", ft_iterative_power(0, 0));
printf("expected : 1 | result : %d\n", ft_iterative_power(5, 0));
printf("expected : 0 | result : %d\n", ft_iterative_power(5, -5));
return (0);
}