Write an algorithm using pseudocode to check the age and height of a child who wants to go on a fairground ride. The child's age must exceed 7, but below 12, their height must exceed 110 cm, but below 150 cm.
int age, height;
bool check = false;
if (age > 7 && age < 12 && height > 110 && height < 150)
check = true;
Comments
Leave a comment