/* Calculating simple interest in C */
For any query regarding c/c++ feel free to contact me on khimanichirag@gmail.com or comment below. I try my best to solve it.
For any query regarding c/c++ feel free to contact me on khimanichirag@gmail.com or comment below. I try my best to solve it.
#include<stdio.h>
#include<conio.h>
void main()
{
int p,r;
float n,interest=0.0;
clrscr();
printf("Enter the value of p: ");
scanf("%d",&p);
printf("Enter the value of r: ");
scanf("%d",&r);
printf("Enter the value of n: ")
scanf("%f",&n);
interest=(p*r*n)/100;
printf("The simple interest is: %f",interest);
getch();
}
No comments:
Post a Comment