You are on page 1of 1

#include <stdio.h> #include <stdlib.

h> int main(int argc, char *argv[]) { int x,y; float z,i,n,emi; printf("enter monthly income"); scanf("%d",&x); printf("enter loan ammount requested"); scanf("%d",&y); printf("enter intrest rate for loan"); scanf("%f",&i); printf("enter period of repayment"); scanf("%f",&n); z= ((i/100)*y)+y; emi=z/n; printf("EMI=%f",emi); if(emi>=0.4*x) { printf("loan sanctioned"); } else { printf("sorry bank can't give you loan, best of luck for future"); } system("PAUSE"); } return 0;

You might also like