Computer Science, asked by cuteprincess03, 9 months ago

WAP in java .....kisi ko aata hai!!!!​

Attachments:

Answers

Answered by subhanshuuu
3

Answer:

Mai iska code c++ mai likh rha hu bs syntax change krlena logic same hai java ke liye bhi

Explanation:

#include”iostream.h”

#include”conio.h”

void main()

{

clrscr();

float deposit,time,rate,si,total;

cout<<“Enter deposit amount :”;

cin>>deposit;

cout<<“Enter time period(Yrs):”;

cin>>time;

if((deposit <2000) && (time >=2))

rate=5;

else if(((deposit >=2000) && (deposit <6000)) && (time >=2))

rate=7;

else if((deposit >6000) && (time >=1))

rate=8;

else if(time>=5)

rate=10;

else

rate=3;

si=(deposit*rate*time)/100;

total=si+deposit;

cout<<“Total amount=”<<total;

getch();

}

Answered by Totalgaming947
1

Answer:

di aap n world famous ho

Similar questions