hello everyone in need of a little help here.i am beginner to programing and i have to produce a program that
1 outputs a message to the moniter asking the user their age as a whole number
2 use the input method to obtain a whole number from the user and store this number in a variable.the user will enter the number using the keyboard
3 then output a new message to the moniter telling the user how old they will be in 10 years.
i hsve come up with this but it wont run any suggestions would be much appreciated thanks kjsalk
using namespace std;
int main()
{
int age = 0;
cout <<"please enter your age :";
cin >> age;
age = 10 + age;
cout <<"your age in ten years will be"<< age << endl ;
return 0;
}