Skip to Main Content
Learn to Program, 2nd Edition
book

Learn to Program, 2nd Edition

by Chris Pine
March 2009
Intermediate to advanced content levelIntermediate to advanced
194 pages
4h
English
Pragmatic Bookshelf
Content preview from Learn to Program, 2nd Edition

A Few Things to Try

Write a program that tells you the following:

  • Hours in a year. How many hours are in a year?

  • Minutes in a decade. How many minutes are in a decade?

  • Your age in seconds. How many seconds old are you? (I’m not going to check your answer, so be as accurate—or not—as you want.)

Here’s a tougher question:

  • Our dear author’s age. If I am 1,160 million seconds old (which I am, though I was somewhere in the 800 millions when I started this book), how old am I?

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn to Program, 3rd Edition

Learn to Program, 3rd Edition

Chris Pine
The Book of Ruby

The Book of Ruby

Huw Collingbourne

Publisher Resources

ISBN: 9781680500172Errata