Created
September 13, 2018 15:59
-
-
Save LokeshKumarES/c91ff5ef674067b117b21887aca78803 to your computer and use it in GitHub Desktop.
Write a C program to find the simple interest
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> | |
#include<conio.h> | |
void main() | |
{ | |
int p, t; | |
float si, r; | |
printf("Enter the principle: "); | |
scanf("%d", &p); | |
printf("Enter the rate: "); | |
scanf("%f", &r); | |
printf("Enter the time: "); | |
scanf("%d", &t); | |
si=(p*t*r)/100; | |
printf("Simple interest is: %f", si); | |
getch(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's exactly what I have been finding