Back
Close

Laboratoire 11

profThiernesse
1,460 views

Exercice 3

Calcul d'un inverse modulaire d'un nombre

Ressource sur l'inverse modulaire

NOTE : il ne faut pas modifier les lignes de saisie et d'affichage.

Trouver l'inverse modulaire
#include <stdio.h>
#include <stdlib.h>
int main() {
int a, n,inv;
scanf("%d",&a);
scanf("%d",&n);
//Ajouter votre code ici
/* si inverse possible
printf("%d\n",inv);
si inverse pas possible
printf("pas d'inverse possible\n");
*/
return 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants