Type Systems

Exercises

  1. Write a program that reads in a natural number n and then reads in n numbers. It should print out the greatest of those n numbers.
  2. Write a program that prints out the values of literals: 1e-3, 1e-4, 5e-4, 5e+2, 5e+3, 2.3e+4, 2.3e-4, 1e-7, 1e-14, 1e-20, 1e-40

Click here for solutions