Write an algorithm to calculate income tax is annual income is given text as calculate followers
#include <iostream>
using namespace std;
int main() {
double sales;
do {
cout << "Enter sales:";
cin >> sales;
if (sales <= 10000.0)
cout << "tax:" << 0.10 * sales << endl;
else
cout << "tax:" << 0.15 * sales << endl;
} while (sales)
return 0;
}
Comments
Leave a comment