AD 1
- Back to Home »
- Technology Help »
- How to Find Simple Interest And Maturity Amount Using C Program ?
Posted by : Unknown
Friday, November 21, 2014
Program Sorce Code:-
Type this code in your compiler. Then Compile and Run. I have used Dev C++.
# include <stdio.h>
main ()
{
int p=5000,r=3;
int T,SI,AMT;
printf("Principal = %d\nRate = %d % \n",p,r);
printf("Time=");
scanf("%d",&T);
SI=(p*r*T)/100;
AMT=SI+p;
printf("\n Amount at the end of %d years is=%d",T,AMT);
}
INPUT:-
Type this code in your compiler. Then Compile and Run. I have used Dev C++.
# include <stdio.h>
main ()
{
int p=5000,r=3;
int T,SI,AMT;
printf("Principal = %d\nRate = %d % \n",p,r);
printf("Time=");
scanf("%d",&T);
SI=(p*r*T)/100;
AMT=SI+p;
printf("\n Amount at the end of %d years is=%d",T,AMT);
}
INPUT:-
OUTPUT:-