C Program to find the simple interest
C Program to find the simple interest
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
#include<stdio.h> int main() { int amount, rate, time, si; printf("\nEnter Principal Amount : "); scanf("%d", &amount); printf("\nEnter Rate of Interest : "); scanf("%d", &rate); printf("\nEnter Period of Time : "); scanf("%d", &time); si = (amount * rate * time) / 100; printf("\nSimple Interest : %d", si); return(0); } |
Output :
1 2 3 4 |
Enter Principal Amount : 500 Enter Rate of interest : 5 Enter Period of Time : 2 Simple Interest : 50 |