#include <stdio.h>
#include <conio.h>
void main()
{
int p,r,t;
float i;
clrscr();
printf("\n\n\n\t\t\t Calculation Of Simple Intrest\n");
printf("\t\t\t Enter Principle = ");
scanf("%d",&p);
printf("\n\t\t\t Enter Rate(%) = ");
scanf("%d",&r);
printf("\n\t\t\t Enter Number of years = ");
scanf("%d",&t);
i=(float)p*r*t/100;
printf("\n\n\t\t\t Simple Interest = %.2f",i);
getch();
}
#include <conio.h>
void main()
{
int p,r,t;
float i;
clrscr();
printf("\n\n\n\t\t\t Calculation Of Simple Intrest\n");
printf("\t\t\t Enter Principle = ");
scanf("%d",&p);
printf("\n\t\t\t Enter Rate(%) = ");
scanf("%d",&r);
printf("\n\t\t\t Enter Number of years = ");
scanf("%d",&t);
i=(float)p*r*t/100;
printf("\n\n\t\t\t Simple Interest = %.2f",i);
getch();
}
No comments:
Post a Comment
kiss on google ads if you are anonymous because your ip is trackable.thank you.
......from.admin