Skip to content

Mahdi-Code630/max-age-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Max Age Finder

This is a simple Python program that allows the user to input ages and then returns the maximum age entered.
The program stops when the user enters -1.

How it works

  1. The user is asked to enter an age.
  2. Each entered age is stored in a list.
  3. If the user enters -1, the loop stops.
  4. The program prints the maximum age entered.

Example

please enter your age: 23 please enter your age: 41 please enter your age: 17 please enter your age: -1 the maximum age is : 41

Requirements

  • Python 3.x

Run

To run the program, use:

python main.py
---

✍️ Written by [MVdeveloper](https://github.com/Mahdi-Code630)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages