alright, how about trying this, i think it is what you want.

Code:
```#include <iostream>
using namespace std;

int main()
{
// my variables

double base=0;
double part=0;
double rate=0;

// my instruction

cout << "In oder to solve your percent problem you must enter in two ";
cout << "number values\n ";
cout << "Press Enter to continue";
getchar();

// my set up

cout <<"Enter in the part number(such as the of statement)\n ";
cin >> part;
cout << "Enter in the base numeber( such as what the percent epuals to\n ";
cin >> base;
cout <<"Enther in the rate number (such as the percent)\n ";
cin >> rate;

// my options and functions

if (part==0){
part = base * rate;
cout << "Your ansewer is"<< part << endl;
getchar();
}else if (base==0){
base = part * rate * 100;
cout <<"Your ansewer is"<< base << endl;
getchar();
}else if (rate==0){
rate = base / part;
cout << "Your ansewer is "<< rate << endl;
getchar();
}

return 0;

}```
your variable types were wrong you are dealing with percent so a decimal, you had them as int witch cannot do into a decimal. double is a decimal type. also for your if statment you put

Code:
`if (part=0){`
when you should have 2 equal signs in there. like...

Code:
`if (part==0){`
also i changed your ifs to else ifs. and i also changed

Code:
```if (base==0){
base = part * rate * 100;
cout <<"Your ansewer is"<< base << endl;
getchar();```
there are two things wrong with the above. 1) you would need to put "(part * rate) * 100" to times the sum of part and rate by 100.
2) you dont need to times anything by 100. i think that was just a slip up, you got it right in the "if (part == 0)" so i think it is just a oops.

so i think that should be that. hope that helped.

Last edited by cpulocksmith; 2Feb2009 at 11:42..