18 lines
313 B
C
18 lines
313 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int main() {
|
||
|
int n;
|
||
|
int m;
|
||
|
int i;
|
||
|
int r;
|
||
|
i=0;
|
||
|
printf("Veuillez saisir un entier positif ou nul suivit d'un entier strictement positif separer d'un espace: ");
|
||
|
scanf("%d",&n);
|
||
|
scanf(" %d",&m);
|
||
|
r=n;
|
||
|
while ((r-m)>0){
|
||
|
r=r-m;
|
||
|
i++;
|
||
|
} printf("%d = %d x %d + %d\n",n,i,m,r);
|
||
|
return 0;
|
||
|
}
|