Programming Languages

PROGRAM TO COMPUTE SIMPLE INTEREST WITH ARGUMENT AND RETURN VALUE

/* PROGRAM TO COMPUTE SIMPLE INTEREST WITH ARGUMENT AND RETURN VALUE */

#include<stdio.h>
#include<conio.h>

float simple(int p,float r,int t);
void main()
{
int p,t;
float r,si;
clrscr();
printf(“ENTER THE VALUE OF PRINCIPLE :”);
scanf(“%d”,&p);
printf(“ENTER THE VALUE OF RATE :”);
scanf(“%f”,&r);
printf(“ENTER THE VALUE OF TIME :”);
scanf(“%d”,&t);
si=simple(p,r,t);
printf(“THE SIMPLE INTEREST IS :%f”,si);
getch();
}
float simple(int pr,float rt,int tm)
{
float s;
s=(prrttm)/100;
return(s);
}

ANIL VERMA
Hello Everyone, Welcome to A. V. Powertech.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.