Unformatted text preview: else if ( age < 20 ) // If the age is less than 20 cout <<" You are pretty young!\n"; // Just to show you it works. .. else if ( age < 50) cout <<"You still have a few good years left in you." << endl ; else if (age < 62) cout <<"Enjoy your retirement, you have earned it." << endl ; else if ( age > 100 ) // I use else just to show an example cout<<"You are really old\n"; // Executed if no other statement is return 0 ; }...
View Full Document
- Return statement, The Age, Carriage return, cout