Computer Science, asked by aarjukar, 6 months ago

I need to write a program to check if the person falls in the age bracket of a child, an adult, a middle-aged person or an older adult by initializing the value in the program(by adding the value in the program) and also by taking the input from the user. Cafeterias are as follows: Child: Age 0-17 Adult: Age 18-35 Middle Aged Adult: 36-55 Older Adult: 55 and above

Answers

Answered by gaganadithyareddy9
0

Answer:

Hey there! This code works only in python

age = int(input("Enter age: "))

if age>=0 and age<=17:

print('The age represents a child')

elif age>=18 and age<=35:

print('The age represents an adult')

elif age>=36 and age<=55:

print('The age represents middle-aged adult')

else:

print('The age represents an older adult')

IF THIS HELPS YOU PLEASE MARK MY ANSWER AS BRAINLIEST AND IF POSSIBLE ADD ME ADD FRIEND!

Similar questions