C Program to calculate simple interest using with paramater, no return type

#include”stdio.h”
#include”conio.h”
float si(int, int, int);
void main()
{
float p, r, t;
clrscr();
printf(“Enter Principle Amount: “);
scanf(“%f”,&p);
printf(“Enter Rate of Interest: “);
scanf(“%f”,&r);
printf(“Enter Time in Year: “);
scanf(“%f”,&t);
si(p,r,t);
getch();
}

float si(int a, int b, int c)
{
printf(“Simple Interest: %f”,(a*b*c)/100);
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s