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 project, you will write a software for the Registrar's office of a university called YouOIT to maintain information about students and courses at the university. The reg

Objective: Construct a C program that controls the UART, and is capable of displaying strings. Echo characters received on the UART to the LCD screen Outcome: A mess

#solution for decode the code for smuglers

explain me for loop

HOW TO USE POINTER

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

find the minimum total number of shelves

requiredrequiredrequiredrequiredrequiredrequiredrequiredrequired

DIFFERENCE BETWEEN WHILE AND DO WHILE LOOP?

Ask queByteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colo