Skip to content

Instantly share code, notes, and snippets.

@LokeshKumarES
Created September 13, 2018 15:59
Show Gist options
  • Save LokeshKumarES/c91ff5ef674067b117b21887aca78803 to your computer and use it in GitHub Desktop.
Save LokeshKumarES/c91ff5ef674067b117b21887aca78803 to your computer and use it in GitHub Desktop.
Write a C program to find the simple interest
#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();
}
@Kranganik
Copy link

That's exactly what I have been finding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment