C program for function of count the interest , C/C++ Programming

C Program for FUNCTION OF COUNT THE INTEREST

float si(float,float,float);

void main()

{

          float p=0,r=0,n=0,k=0;

          clrscr();

          printf("ENTER THE PRINCIPAL: ");

          scanf("%f",&p);

          printf("ENTER THE RATE OF INTEREST: ");

          scanf("%f",&r);

          printf("ENTER THE PERIOD: ");

          scanf("%f",&n);

          k=si(p,r,n);

          printf("THE SIMPLE INTEREST IS %f",k);

          getch();

 

}

float si(float p,float r,float n)

{

          float k=0;

          k=(p*r*n)/100;

          return(k);

}

 

OUTPUT :

ENTER THE PRINCIPAL : 10000

ENTER THE RATE OF INTEREST : 5

ENTER THE PERIOD : 1

THE SIMPLE INTEREST IS 600.00

Posted Date: 9/10/2012 8:00:20 AM | Location : United States







Related Discussions:- C program for function of count the interest , Assignment Help, Ask Question on C program for function of count the interest , Get Answer, Expert's Help, C program for function of count the interest Discussions

Write discussion on C program for function of count the interest
Your posts are moderated
Related Questions
In this we will take a closer look at the logic behind Object Oriented Programming.  Read through the pseudocode listed below and answer the following questions. Class Square

Define the Recursion Function in C? In C, it is potential for the function to call themselves a function is describing 'recursive' if a statement within the body of a function

Described multiple inheritance(virtual inheritance)? And explain its advantages and disadvantages? A: It is the procedure in which a child can be derived from more than one pare

how to declare arrays

minimum of seven number

A constructor that accepts one argument of a dissimilar type.


Create a user-defined data structure (struct) called Node that represents a node within a linked list where the "data" stored in each node is a pointer to a Car object.    a) Wr

Each of the following two procedures defines a method for adding two positive integers in terms of the procedures inc, which increments its argument by 1, and dec, which decrements

I need to create a connection to FIFA Ultimate Team 14, I want to utilize C++ specifically for the reason that that is the language I have the most experience in. There are a co