C Programming
Computer Programming

Program in c to find the simple interest



Write a Program in c to find the simple interest

\* C Program to to find the simple interest *\

# include < stdio.h >
int   main( )
{

float   sa, p, r, t  ;
printf(" Enter the Principle Amount : ") ;
scanf("%f ", & p) ;
printf("\n Enter the rate of intrest : ") ;
scanf("%f ", & r) ;
printf("\n Enter the Time Period : ") ;
scanf("%f ", & t) ;
sa = ( p * r * t ) / 100  ;
printf("\n The Sipmle Intrest are : ") ;
printf(" %f ",  sa) ;
return ( 0 ) ;

}

Output of Program:

Output of Program in C to find the simple interest