We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0fcb09 + 2a049ef commit dc895e2Copy full SHA for dc895e2
CalculateSimpleInterest.c
@@ -0,0 +1,19 @@
1
+#include<stdio.h>
2
+main()
3
+{
4
+ int principleAmount;
5
+ int numberOfYears;
6
+ int rateOfInterest;
7
+ int SimpleInterest;
8
+ printf("enter principleAmount\n",principleAmount);
9
+ scanf("%d",&principleAmount);
10
+ printf("enter number of year\n",numberOfYears);
11
+ scanf("%d",&numberOfYears);
12
+ printf("enter rate of interest\n",rateOfInterest);
13
+ scanf("%d",&rateOfInterest);
14
+
15
+ SimpleInterest=(principleAmount*numberOfYears*rateOfInterest)/100;
16
+ printf("Simple interest is %d",SimpleInterest);
17
18
19
+}
0 commit comments