Long back, I was thinking of how much can a person gain by saving regularly. Then I thought, lets cerate a program for this. And I wrote a C program for the sole intention of money calculation. Let me share it!!!
Don't laugh too much!!!
- include <stdio.h>
- include <math.h>
int main()
{
float roi, amount, total, initial, interest;
int start_age, end_age, store_age, index;
FILE *fp;
printf ("Enter rate of interest: ");
scanf ("%f", &roi);
printf ("Enter starting age: ");
scanf ("%d", &start_age);
do {
printf ("Enter ending age: ");
scanf ("%d", &end_age);
if (end_age < start_age)
printf ("This must be more than or same as staring age\n");
} while (end_age < start_age);
do {
printf ("Enter age till which account will be kept but no money will be invested: ");
scanf ("%d", &store_age);...