0
0
This commit is contained in:
Guy Baconniere
2021-08-17 18:28:27 +02:00
parent c5b02f1036
commit 6e576f39ca
16 changed files with 329 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni <gbaconni@student.42lausan> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/17 16:29:14 by gbaconni #+# #+# */
/* Updated: 2021/08/17 16:29:34 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
int ft_iterative_power(int nb, int power);
int main(void)
{
int nb;
int power;
int result;
printf("Input Number: ");
scanf("%d", &nb);
printf("Input Power: ");
scanf("%d", &power);
result = ft_iterative_power(nb, power);
printf("nb=%d power=%d result=%d (ft_iterative_power)\n", nb, power, result);
return (0);
}