cout<<"\n enter the opening cash bal"<<endl;
if(bal > 2000)
cout<<“the opening balance should be less than 2000us$”<<endl;
cout<<"\n enter the amount to withdraw"<<endl;
if(withdr > 2000)
if(withdr%5 == 0)
bal=bal - withdr;
bal=bal - 0.50;
cout<<“you have succesfully withdrawn”<<withdr<<"\n your current balance is"<<bal<<endl;
cout<<“The withdraw amount should be multiple of 5 try once again :)”<<endl;
cout<<“enter your choice”<endl;
it would be better if you paste the code and then after highlighting the code press the button which says “101 010” this would format the code and will be readable, the one you have posted currently, is very hard to read and understand.
You need to print compulsarily till 2 decimal places. Then, remove those superfluous print statements like “enter the amount”. Its a machine checking if what you print is exact match of expected output or not.