/* Calculation of Simple Interest */
int main( )
{
int rate,principle,time ;
}
#include<stdio.h>
#include<stdlib.h>
int main( )
{
int rate,principle,time ;
float amount;
printf ( "Enter rate, principle, and time : " ) ;
scanf ( "%d %d %d", &rate, &principle, &time ) ;
amount = (principle*rate*time)/100;
printf ( "Your resultant amount is Rs.%f ",amount) ;
printf ( "Enter rate, principle, and time : " ) ;
scanf ( "%d %d %d", &rate, &principle, &time ) ;
amount = (principle*rate*time)/100;
printf ( "Your resultant amount is Rs.%f ",amount) ;
system("pause");
return 0;}
No comments:
Post a Comment