Skip to main content
Search
Search This Blog
Basic C programming
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
Labels
Basic C programming
C programming
C programming for beginners
Dev c++
SI
Totalamount
November 29, 2022
Write a program to find SI and total amount by giving P,R,T ?
C
PROGRAM
TO
FIND
SI
&
TOTAL
AMOUNT
Best C programming app is Dev c++
PROGRAM:
-
#include<stdio.h>
int main()
{
float P,R,T,SI;
printf("Enter the Principal:");
scanf("%f",&P);
printf("Enter the Rate of Interest:");
scanf("%f",&R);
printf("Enter the Time:");
scanf("%f",&T);
SI=P*R*T/100;
printf("Simple Interest=%f\n",SI);
printf("Total Amount=%f",SI+P);
return 0;
}
OUTPUT:
-
Enter the Principal:15000
Enter the Rate of Interest:24
Enter the Time:6
Simple Interest=21600.000000
Total Amount=36600.000000
Thank you all -----
Follow my blog for more programming knowledge...
------------------x----------------------x-------------------------x------------------
Comments
Popular Posts
November 13, 2022
How to print * pattern in C programming?
November 29, 2022
Write a program to find out the area of circle
Comments
Post a Comment