Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Iteration [6/10]

This example prints out first 10 multiples of number 3.
[Run the program]

A string is a text composed of characters. Kinds of characters include letters, digits, spaces, punctuation, and many others.

A single-quotes mark is actually a character called “an apostrophe”. A double-quotes character is more precisely called “a quotation mark”.

Strings are allowed to be enclosed inside single-quotes. Such strings are allowed to contain double-quotes.

Exercise:

1. Modify the program so that it prints out first ten multiples of number 7.
[Run the program]

2. Change the name of the variable i to z.
[Run the program]

Loading...