Guest User

Untitled

a guest
Jan 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3.  
  4. void main() {
  5. int amount, rate, time, si;
  6.  
  7. printf("\nEnter Principal Amount : ");
  8. scanf("%d", &amount);
  9.  
  10. printf("\nEnter Rate of Interest : ");
  11. scanf("%d", &rate);
  12.  
  13. printf("\nEnter Period of Time : ");
  14. scanf("%d", &time);
  15.  
  16. si = (amount * rate * time) / 100;
  17. printf("\nSimple Interest : %d", si);
  18.  
  19. getch();
  20. }
Add Comment
Please, Sign In to add comment