A C program to calculate and display the monthly interest from different data

/*A C language program to calculate and display the monthly interest for following Bank ratesPeriod <6 month 5%Period 6 to 12 month 6%Above 1 year 10%*/


#include <stdio.h>
#include<conio.h>
void main( ) 
{
clrscr();
float p,t,r,i;
printf(“\nEnter principal amount”);
scanf(“%f”,&p);
printf(“\nEnter time in month”);
scanf(“%f”,&t);
if(t<6)
r=5.0;
else if(t<=12)
r=6.0;
else
r=10.0;
i=((p*t*r)/100)*12;
printf(“\Monthly interest is %f”,i);
getch();
}
Output:


A C program to calculate and display the monthly interest from different data, my knowledge to you dude, write A C program to calculate and display the monthly interest from different data, wap to calculate and display the monthly interest from different data


Post a Comment

0 Comments