#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;