How to display tax from this code.

cout << " Tax deducted:" << tax << endl;
cout << "Total Balance : " << totalBalance << endl;
cout << "Interest Rate : ";
if( accBalance <= 1000 )
cout << "2%" << endl;
if (accBalance > 1000)
cout << "5%" << endl;
cout <<"Interest Paid : " << interestPaid << endl;



return 0;
Last edited on
Topic archived. No new replies allowed.