WRITE A PROGRAM
ACCEPT A LOAN AMOUNT ,TIME AND RATE TO FINDOUT SIMPLE INTREST ?
AMOUNT
RATE YEAR
20,000-50,000
14% 2
50,000-70,000
11% 2
70,000-2,000,00
10% 2
2,000,00-MORE
0% 2
#include<iostream.h>
#include<conio.h>
main()
{
int a,d;
cout<<"
WELLCOME TO SBI BANK\n";
cout<<"
LOAN SECSSION\n\n";
cout<<"==============================================================\n";
cout<<"
AMOUNT RATE YEAR\n";
cout<<"20,000-50,000
14% 2\n";
cout<<"50,000-70,000
11% 2\n";
cout<<"70,000-2,000,00
10% 2\n";
cout<<"2,000,00-MORE
0% 2\n";
cout<<"==============================================================\n";
cout<<"ENTER
YOUR AMOUNT = ";
cin>>a;
if((a>=20000)&&(20000<=50000))
d=a*14*2/100;
if((a>=50000)&&(a<=70000))
d=a*11*2/100;
if((a>=70000)&&(a<=200000))
d=a*10*2/100;
if((a>=200000)&&(a<=999999999999))
d=a*0*2/100;
cout<<"\nYOUR
SIMPLE INTERST IS = "<<d<<"\n\n\n\n\n\n";
getch();
}
0 Comments
USE ANONYMOUS PROFILE IF YOU WANT D'NT SHARE EMAIL