Link to updated solution? The one you posted in Help me to solve the error - #19 by geeky_boy gives no output for that test input on my machine. (Edit: though it does give the correct output on Codechef. Interesting.)
where am i missing things can anybody help me plz #include #include
using namespace std;
int main() {
// your code goes here
int withdraw;
float totalamt;
cout<<"\nEnter the amount to be withdraw : “;
cin>>withdraw;
cout<<”\nEnter the total amount in your account : “;
cin>>totalamt;
if(totalamt>withdraw && withdraw%5==0)
{
cout<<”\nTransaction completed"<<endl;
totalamt=totalamt-withdraw-0.50;
}
else
{
cout<<“transaction cancled”<<endl;
}
cout<<"Total Balance of your account is : "<<fixed<<setprecision(2)<<totalamt;
return 0;
}