Exercise 1: Let's Get the Output

Test your skills to fix the errors and get the output.

We'll cover the following

Problem statement

The code given in the code snippet below is erroneous and does not execute on time. First, modify the code given below so the major issue causes a runtime error. Then, modify the code such that it prints 0 1 2 five times.

Get hands-on with 1200+ tech skills courses.