Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Program to input principal amount, rate and time and calculate SI
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- float rate, principle, time;
- clrscr();
- printf("Enter principle, rate and time (in years): ");
- scanf("%f%f%f", &principle, &rate, &time);
- printf("The simple interest for Rs.%f at rate %f for the duration %f years is: %f", principle, rate, time, principle * rate * time * 0.01);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment