Programming Languages

PROGRAM TO COMPUTE SIMPLE INTEREST WITH ARGUMENTS BUT RETURN NOTHING

/* PROGRAM TO COMPUTE SIMPLE INTEREST WITH ARGUMENTS BUT RETURN NOTHING */

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

void simple(int p,float r,int t);
void main()
{
int p,t;
float r;
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);
simple(p,r,t);
getch();
}
void simple(int pr,float rt,int tm)
{
float si;
si=(prrttm)/100;
printf(“THE SIMPLE INTEREST IS : %f”,si);
}

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.