Given the age of a person as an input, output their age group. Here are the age groups you need to handle: Child: 0 to 11... | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Given the age of a person as an input, output their age group. Here are the age groups you need to handle: Child: 0 to 11...

Pls anyone help me to get its code

16th Jan 2022, 7:07 AM
DARSHAN *
DARSHAN * - avatar
3 Réponses
+ 3
Show me your code bit so I can see what's wrong https://www.sololearn.com/post/75089/?ref=app
16th Jan 2022, 7:12 AM
Ipang
+ 3
Hint: first you should input an integer variable with age. After that with if else statement detrrmine the group. Next time plesse show your attempt with a question where you have problem.
16th Jan 2022, 7:17 AM
JaScript
JaScript - avatar
+ 1
You can use if elif And write like this: ... if...<=11 and ...>=0: ... elif...
16th Jan 2022, 7:12 AM
NEZ
NEZ - avatar