CSE110 Lab Assignment 2.HTML-1
CSE110 Lab Assignment 2.HTML-1
This assignment is to guide in solving basic programming problems using loop in Python.
Task 1
Write python program, which prints the following sequences of values in loops:
a) 24, 18, 12, 6, 0, -6\ b) -10, -5, 0, 5, 10, 15, 20\ c) 18, 27, 36, 45, 54, 63\ d) 18,-27, 36,-45,54,-63
=====================================================================
Hints(2): We are already familiar with the print() function. But when we use it to print any value it automatically adds an additional newline after
each print statement.
Output:\ 1\ 2
=====================================================================
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD