Write a program to print simple interest by using function.
#include<stdio.h>
#include<conio.h>
int si(int,int,int);
void main()
{
int p=1000,r=5,t=4,result;
clrscr();
result=si(p,r,t);
printf(“%d”,result);
getch();
}
int si(int x,int y,int z)
{
int temp;
temp= (x*y*z)/100;
return(temp);
}
0 Comments
Have any query? Want any type of module?
Please comment it down and let me know.