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
write a c program to compute a padovan string


#Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can

How do you access the values within an array? - Arrays comprise a number of elements, which depends on the size you assigned it during variable declaration. - Every element

Binomial coefficients are the numeric factors of the products in a power of a binomial such as (x + y)n. For example, (x + y)2 = x2 + 2 x y + y2 has the coefficients 1 2 1. Binomia

What is a hash function? Hash function: This is the method from the set 'K' of keys into the set 'L' of memory addresses.   H: K → L These are used to verify the address

Write a main program that uses these system calls to echo the typed characters. The pseudo code will look something like: void traphandler ()  {    if (R0 == 0) { // read sys

#an array that accept input and gives an output

There are ''''n'''' ants on a ''''n+1'''' length rod. The ants are numbered from 1 to n and are initially placed at positions starting from position 1 till position n. They are mov

Q: Name the operators which cannot be overloaded? A:sizeof, ., .*, .->, ::, ?: