Skip to content

Benjah16/Ben-s-world-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

#include using namespace std;

void checkAge(int age) { if (age < 18 || age > 70) { cout << "Error: Age is not within the acceptable range for entry." << endl; // Additional code for denying entry or providing an alternative action exit(0); // Exit the program if age is not within the acceptable range } }

int main() { int clientAge;

cout << "Welcome to Nii's Avenue Club!" << endl;
cout << "Please enter your age: ";
cin >> clientAge;

checkAge(clientAge);
cout << "Congratulations! You are eligible for entry." << endl;
// Additional code for allowing the client to enter the facility

return 0;

}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published