blob: 4c74cb090312331f6d592e83d5a252591f10a2c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#pragma once
typedef struct contract {
unsigned int n; /* duration of the loan */
unsigned int k; /* current year */
unsigned int d; /* delay period of the loan */
float r; /* interest rate */
float P; /* part of the pricipal left at year k */
float I; /* the interest for year k */
float D; /* part of the capital reinbursed on year k */
float A; /* annuity for year k */
} contract;
|