#include<stdio.h> #include<conio.h> void main() { int amount,rate,time,si; clrscr(); printf("Enter Principal Amount : "); scanf("%d",&amount); printf("Enter Rate of interest : "); scanf("%d",&rate); printf("Enter Period of Time : "); scanf("%d",&time); si = (amount * rate * time)/100; printf("Simple Intrest : %d",si); getch(); }
Output :
Enter Principal Amount : 500 Enter Rate of interest : 5 Enter Period of Time : 2 Simple Interest : 50
No comments:
Post a Comment