#include<stdio.h> #include<conio.h> void main() { float p,t,r,si; /* p-> principle amont, t-> time in years, r-> rate of interest and si for calculated interest */ clrscr(); printf("enter p, t, r\n"); scanf("%f%f%f",&p, &t, &r); si= (p*t*r)/100; printf("\n simple interst is %.2f",si); getch(); }output:enter p,t,r 5000 4 3 simple interest is 600.00