Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Introduction [8/10]

This program outputs the expressions together with the results.
[Run the program]

At first glance, it might appear that the given strings contain expressions, but that is only an illusion. Strings cannot contain expressions.

Strings are printed out as they are stated. Expressions are evaluated before printing.

Exercise:

Add a statement: println "3m × 4m = ", 3*4, "m²";

Loading...