This repository has been archived on 2019-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
s4-c/DS1-2015/E1.c
2016-02-24 11:05:25 +01:00

19 lines
269 B
C

/* Calcul de la mensualité d'emprunt */
#include <stdio.h>
#include <math.h>
int main() {
double S = 10000;
double t = 0.036;
double x = t / 12;
int n = 30;
double R;
R = (S*x)/(1-pow(1+x, -n));
printf("2) %lf\n", R);
return 0;
}