Cloudbook: Perl for Biologists Hello Guest, Login

  1. Home
  2. Variables
  3. Exercises
  4. ↵ lesson← prevnext →
  • Write a perl program that creates a hash with Celsius and equivalent Fahrenheit temperatures, from 0 degrees Celsius to 100 degrees Celsius, counting by 10. This hash should use the Celsius temperatures as keys and the corresponding Fahrenheit temperatures as values. Once the hash is created, print all eleven hash keys and corresponding values in order. Each pair should be printed on a separate line. Lines should look like this: "XX degrees Celsius = YY degrees Fahrenheit", where XX is a key and YY the corresponding value in the hash.


# My Perl code ...


Copyright 2012 Huseyin Kocak, Dimitris Papamichail and Burt Rosenberg. All Rights Reserved.