Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C by kedar ( 8 years ago )
#include <stdio>
#include <math.h>
struct EMI
{
  float principal;
  float rate;
  float time;
};
int main()
{
  struct EMI e;
  float c;
  scanf("%f",&e.principal);
  scanf("%f",&e.rate);
  scanf("%f",&e.time);
  e.rate=(e.rate)/(12*100);
  e.time=(e.time)*12;
  
  
  
  
  c=(e.principal)*(e.rate)*(pow((1+e.rate),e.time))/(pow((1+e.rate),e.time)-1);
  printf("Monthly EMI is=%.6f",c);
  

 return 0;
}

 

Revise this Paste

Your Name: Code Language: