Skip to content

Commit 41d84ab

Browse files
Merge pull request #149 from shreyanshthakur/patch-1
Calculate Simple Interest
2 parents 05c767e + 3732f76 commit 41d84ab

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

simple_interest.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//Program to Calculate Simple Interest
2+
#include<stdio.h>
3+
4+
#include<conio.h>
5+
6+
void main() {
7+
float P, R, T, SI;
8+
scanf("%f%f%f", & P, & R, & T);
9+
SI = (P * R * T) / 100;
10+
printf("%f", SI);
11+
getch();
12+
}

0 commit comments

Comments
 (0)