Don't know if it's coded to the best or not, as its my first attempt using IF's , but by looking at it I'm sure iv'e made more work for my self then i needed to.
Feedback please, or anyway I could have made this easier if its possible.
Code:
#include <iostream>
using namespace std;
int main()
{
system("TITLE My First C++ Programme!");
system("COLOR 04");
int age; //variables
int sonsage;
cout << "How Old Are You?";
cin >> age;
if ( age > 50 )
{
cout << "your getting old :(!\n";
cout << "How old is your son?";
cin >> sonsage;
}
else if ( age < 50 )
{
cout << "Your young :) :)\n";
cout << "How old is your son?";
cin >> sonsage;
}
if ( sonsage < 10 )
{
cout << "Wow hes a young man he is!\n";
}
else
{
cout << "i dont care!!! hahahahahahahahah :)\n";
}
}
Thank you