11. Write a C program to enter P, T, R and calculate Simple Interest.
Solution :-
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float principle,rate,time,simple;
printf("Enter the Principle amount :-\n");
scanf("%f",&principle);
printf("Enter the Rate of Intereset :-\n");
scanf("%f",&rate);
printf("Enter the Time period :-\n");
scanf("%f",&time);
simple = principle * rate*time/100;
printf("The Simple Interest is :-%f\n",simple);
getch();
}
Output :-