question 33 Conditional Logic · easy
Check a typed age
A clinic form reads a patient's age. Before saving it, reject an age below 0 with Age can't be negative, and an age above 120 with Please check the age. Otherwise print Age saved: and the age. A newborn is 0.
Typed line
34 here, after the prompt Age? . Check also types other agesPrints
Age? Age saved: 34Expected output1 line · typed 34
- 1Age? Age saved: 34