Calculate Simple Interest

Calculate Simple Interest

Welcome to the World of Online Learning:

Hello Friends “This blog helps you to learn C programming concepts. You can learn C language at your own speed and time. One can learn concepts of C language by practicing various programs given on various pages of this blog. Enjoy the power of Self-learning using the Internet.”

Calculate Simple Interest
Calculate Simple Interest

Write a C program to find the simple interest.

Simple Interest is the interest paid on the principal amount for which the interest earned regularly is not added to the principal amount.

Program:Calculate Simple Interest

/*    Calculate Simple interest    */
#include<stdio.h>
int main()
{
float p;
float ir,t;
float in;printf(“Type your principle amount : “);
scanf(“%f”,&p);
printf(“\n Type your rate of intrest : “);
scanf(“%f”,&ir);
printf(“\n Type time (in year) : “);
scanf(“%f”,&t);
in=p*ir*t/100;
printf(“\n You will get intrest : %.2f”,in);
return 0;
}

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *