C program to calculate simple interest

      No Comments on C program to calculate simple interest
#include<stdio.h>
#include<conio.h>
void main()
{
 float x,y,z,s;
 clrscr();
 printf("Enter principle amount:- ");
 scanf("%f",&x);
 printf("Enter rate for intrest:- ");
 scanf("%f",&y);
 printf("Enter loan time in days:- ");
 scanf("%f",&z);

 s=(x*y*z)/100;
 printf("Simple Intrest = %f",s);
 getch();
}

OUTPUT:-

interest

Leave a Reply

Your email address will not be published. Required fields are marked *