Thursday, 16 August 2012

Simple Interest Program

Write a program to calculate Simple Interest.

Answer:


#include<stdio.h>
#include<conio.h>
void main ()
{
int p, n;
float r, si;
printf(" Enter the values of p, n, r: ");
scanf("%d %d %f", &p, &n, &r);
si=p*n*r/100;
printf("%f", si);
getch ();
}

No comments:

Post a Comment