Last active
July 17, 2019 17:33
-
-
Save sachinsaxena25/c5b9fb11eb8dea1a0be2534b2f100cea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main(void){ | |
float principle = 0.0f; | |
float time = 0.0f; | |
float rate = 0.0f; | |
float si = 0.0f; | |
printf("please enter the principle amount in :\n"); | |
scanf("%f", &principle); | |
printf("please enter the time duration in years ex = 4 / 5.5 etc:\n"); | |
scanf("%f", &time); | |
printf("please enter the rate of interest in %%:\n"); | |
scanf("%f", %rate); | |
si = (principle * rate * time) / 100.0f; | |
printf("The Simple Interest Amount Calculated is = %.2f /-\n", si); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notes -
simple intereset.c
, the name could be either of the following -