Theme Graphic
Theme Graphic

Soft thoughts

Thougts of software and other thoughts as they occur

Subscribe

Author

I love literature, psychology and computers.

Archive

Tags

Posted on Saturday, July 04, 2009 at 11:36 PM

Money++ C code!

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!!!

  1. include <stdio.h>
  2. 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);...
Comments: 0 Tags: None

 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.