Simple Arithmetic: Ages of programming languages
Ages of programming Languages
Clojure was 10 years old in 2017, so its age can be represented as the number 10
Can you write some simple Clojure to calculate the total number of years from all the following languages
- Clojure (10 years)
- Haskell (27 years)
- Python (26 years)
- Javascript (21 years)
- Java (22 years)
- Ruby (22 years)
- C (45 years)
- C++ (34 years)
- Lisp (59 years)
- Fortran (60 years)
You can use the list of years here as a convenience
10 27 26 21 22 22 45 34 59 60
()
Average age of programming languages
Calculate the average age of the 10 programming languages
For example, you could simply divide the total age of all languages by 10, as there are 10 languages.
()