2020-05-03 14:14:20 +02:00

16 lines
197 B
C
Executable File

#include <stdio.h>
#include <stdlib.h>
#include "fonctions.h"
int PPD(int nb)
{
int i = 2;
int ver = nb;
while((ver % i) != 0)
{
i++;
}
return i;
}