- Joined
- Feb 5, 2008
- Messages
- 601
- Reaction score
- 0
It says:
and heres my code which doesnt work -.-
can some one help out?
For your project, use the method below to generate another way of looking at one's IQ:
Take someone's weight (in pounds).
Multiply it by shoe size.
Then divide the result of that by their height in feet (rounded to nearest foot).
Last, multiply by their age to come up with their IQ.
and heres my code which doesnt work -.-
#include <iostream>
#include <string>
using namespace std;
int main()
{
int lb;
char shoe;
string tall;
string age;
cout <<"Enter your weight (pounds): " << endl;
cin >> lb;
cout <<"Enter your shoe size: " << endl;
cin >> shoe;
cout <<"Enter your height: " << endl;
cin >> tall;
cout <<"Enter your age: " << endl;
cin >> age;
cout <<"Your IQ is: " << endl;
int a = age;
int b = smart;
int x = lb;
int y = shoe;
int z = tall;
x *= y; //Times varibles
cout << x << endl;
(x *= y)/=z; //subtract variables
cout << x << endl;
(x *= y /=z)*=a; //multiply variables
cout << x << endl;
system("PAUSE");
return 0;
}
can some one help out?