Simple Interest


SUBMITTED BY: Guest

DATE: March 6, 2014, 9:13 a.m.

FORMAT: C#

SIZE: 452 Bytes

HITS: 1372

  1. #include<stdio.h>
  2. #include<conio.h>
  3. void si();
  4. void main()
  5. {
  6. clrscr();
  7. si();
  8. getch();
  9. }
  10. void si()
  11. {
  12. int p,r,n;
  13. printf("To Find Simple Interest");
  14. printf("\n\nEnter Principle Amount");
  15. scanf("%d",&p);
  16. printf("\nEnter Rate of Interest");
  17. scanf("%d",&r);
  18. printf("\nEnter Period in Years");
  19. scanf("%d",&n);
  20. printf("\nThe simple interest is Rs. %d",(p*r*n)/100);
  21. }

comments powered by Disqus