My Subject Blog

C Program Interest Calculation

/* Write a Program to find out simple interest.

 I=(P*R*N)/100   */


#include <stdio.h>

int main(void) {

int N;

float P, R, I;

printf("Enter Amount P :");

scanf("%f",&P);

printf("Enter Rate R :");

scanf("%f",&R);

printf("Enter No of Years N :");

scanf("%d",&N);

I = (P*R*N)/100;

printf("\n Interest = %.2f",I);

return 0;
}

Comments

Most Visited Post

C Program to Find Largest Odd Number from Array

Followers