34 lines
1.3 KiB
C
34 lines
1.3 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* main.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2021/08/18 10:51:24 by gbaconni #+# #+# */
|
|
/* Updated: 2021/08/18 10:51:25 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);
|
|
}
|