Dont print such superfluous statements. Its a machine checking if your output is an exact match of expected one or not. It will print WA on encountering such a case.
(with+ 0.50)<bal
Is bank balance of 0 not allowed in the question? I think a balance of 0 is allowed
Exact input/output format should be maintained.
First, omit line cout<<“input”
Second, the output should be given corrected up to 2 decimal places. In C++, you can use setprecision
function in the header file . Check it out here :-