Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Program to Calculate Interest */
- include<stdio.h>
- include<conio.h>
- main()
- {
- int p, n;
- float r, si;
- printf(“Enter the values for p, n, and r:”);
- scanf(“%d %d %f”, &p, &n, &r);
- si = p * n * r / 100;
- printf(“%f”, si);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement