Yea, im wonderin if i could make, a very simple program i made in a very short period of time,-(i was bored lol)- into a stand alone non terminating program. I am new to this code and don't know whether it is posible or the slightest idea how to do it.
The code is...
Code://Sales tax calculator (CA, Alameda county sales tax) #include <iostream> using namespace std; int main () { int i; cout << "Please enter the price: "; cin >> i; cout << " The price you entered is " << i; cout << " The sales tax for this amount is " << 8.75/100*i << ".\n"; cout << " The total amount is $ " << 8.75/100*i+i ; }
if you could please explain how to do it that would be great .
Any edits you think would improve the program or enable me to do what i want, if you could post it that would be appreciated