Write a program Calculate Simple interest in c.
/* Calculate Simple interest */
#include<stdio.h>
#include<conio.h>
void main()
{
float p;
float i,t;
float r;
printf("Type your principle amount : ");
scanf("%f",&p);
printf("\n Type your rate of intrest : ");
scanf("%f",&i);
printf("\n Type time (in year) : ");
scanf("%f",&t);
r=p*i*t/100;
printf("\n You will get intrest : %.2f",r);
getch();
}
output:-
Type your principle amount : 500
Type your rate of intrest : 5
Type time (in year) : 2
You will get intrest : 50.00
Related C Programs..
- Write a program to add two numbers. (Solution).
- Write a program to subtraction two number. (Solution).
- Write a program to Multiplication Two Number. (Solution).
- Write a program to Calculate Simple interest. (Solution).
- Write a program to Division two numbers. (Solution).
- Write a program to calculate area of a circle. (Solution).
- Basic Question All
0 Comments