Skip to content

amirhosseinghods/Average_int

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

A program that receives 10 numbers from the user and calculates their average, then prints the number with the shortest distance to the average. If more than one number has this property, the number listed earlier will be printed.

Input:

Only one line contains ten numbers separated by Space

Output:

The closest member of the collection is printed to the average.

Example:

Input: 1 2 3 4 5 6 7 8 9 10

Output: 5

Input: 32.5 15 100 8 4 5 1 2.5 8.8 55

Output: 15

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages