Advertisement
CSArchiveNet

C Program to calculate interest

Sep 24th, 2013
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. /* Program to Calculate Interest */
  2. include<stdio.h>
  3. include<conio.h>
  4. main()
  5. {
  6.     int p, n;
  7.     float r, si;
  8.     printf(“Enter the values for p, n, and r:);
  9.     scanf(%d %d %f”, &p, &n, &r);
  10.     si = p * n * r / 100;
  11.     printf(%f”, si);
  12.     getch();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement