Put everything in folders

This commit is contained in:
2015-10-14 02:01:48 +02:00
parent 66424386af
commit 5f40a4bfe1
8 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#include <stdio.h>
int main()
{
float cap, interest;
int year;
int nrOfYears;
printf("Invested capial: "); scanf("%f", &cap);
printf("Interest? "); scanf("%f", &interest);
printf("How many years? "); scanf("%d", &nrOfYears);
printf("\n Year Holding\n ==== =======\n");
for (year = 1; year <= nrOfYears; year++)
{
cap = cap * (1 + interest / 100);
printf("%5d%13.2f\n", year, cap);
}
return 0;
}