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
Declaration of Variables: Variables are declared as follows: int a; float b;   Assigning value to variables: int a = 100; Declaring and assigning is called ini

Stack operations - C++: Write a program to define basic stack operations in c++. int Stack::push(int elem) {    int m = getmax();    if (top    {       put_

A: This is a name that acts as an alias, or alternative name, for a beforehand defined variable or an object. prepending variable along with "&" symbol makes it as reference. fo

i need a program that generates this output: The highest card wins! Suit Order is: clubs, diamonds, hearts and spades The computers card is the 5 of Spades. The player’s card is t

Can any constructor throw an exception? How to handle error while the constructor fails?

I am seeking an expert to create a 360 degree virtual tour in KRPano for use on PCs, tablets and smartphones. You will be given with panoramas in order to create an advanced KRPano


Program is to read the characters from keyboard: Program is to read the characters from keyboard one by one stored in different files as upper constants, lower constants, othe

After p = new Fred[n], how does the compiler know about n objects to be destructed throughout delete[] p? A:  The run-time system hold the number of objects, n, somewhere where

3 kilograms of peebles are needed for converting an area of 1 square meter.the rate of the peeble is 5 per kilogram