can someone please check and assist me do this program ? its pretty cool

HI this is not for school just for fun it would be cool to make this work
I want to impress my friends haha. Can you who ever reads this help I thought of the idea but I need help thanks for the help. can you try to do this and then show me the code how you did it thanks this is what i have so far but not even close


I want to make this program that will guess your age
1)I want the user to pick a number 1-10
2)the number that the user choose must then be multiplied by 2.
3)then added by 5,
4)then multiplied by 50

5)then ask the user " have you had your birthday yet?"
if user type yes add total amount so far by 1766
if user type no add total amount so far by 1765

6)ask user what year they where you born
once user type year, subtract total so far by the year they where born to get the final product that says :
"The first number is the first num you choose and the other two num is your age:"



#include <iostream>

using namespace std;

int main()
{

{ double amount,num,one,two,three,four,five,six,seven,eight,nine,ten,bday;
cout << "Hello Pick a Number 1-10 And ill guess your Age!" << endl;
cin >> amount;

cout<<endl;
cout << "1" << endl;
cout << "2" << endl;
cout << "3" << endl;
cout <<"4" << endl;
cout <<"5" << endl;
cout << "6" << endl;
cout << "7" << endl;
cout <<"8" << endl;
cout <<"9" << endl;
cout <<"10" << endl;
cout <<"?"<<endl;cin >> num;








cout << endl;

if(num==2)
{
two= amount*2;

}

{
if
(two =amount+5);
}

{

if
(two = amount*50);


}

cout << "if you had a b-day already select 1 if not 2"
cin>> bday;
cout >>"1";endl;
cout >>"2"; endl;

}


return 0;

}

1
2
3
4
5
6
7
8
if
(two =amount+5);
}

{

if
(two = amount*50);


Should be :
1
2
3
4
5
6
7
8
9
if(two == amount+5)
{
    // Your code
}

if(two == amount*50)
{
    // Your code
}

Please don't spam the forum with multiple posts for the same question.

http://www.cplusplus.com/forum/general/200321/
its not like i did it 100 times sir okay calm down thank you
if you ask them about the year they were born? so what are you trying to find out at the end to make it "fun"?
Topic archived. No new replies allowed.