Lab Assignment-4 Basak Taylan April 29, 2019 Question-1 1-) By using for loop print all even numbers between 111 and 11 in ascending order. (i.e XXXXXXXXXX) Question-2 1-) By using while loop print...

By using for loop print all even numbers between 111 and 11 in ascending order. (i.e. 12 14 16 .... 110)


Lab Assignment-4 Basak Taylan April 29, 2019 Question-1 1-) By using for loop print all even numbers between 111 and 11 in ascending order. (i.e. 12 14 16 .... 110) Question-2 1-) By using while loop print all odd numbers that are divisible by 3 between 11 and 111 in descending order. (111 105 99 ... 15) Question-3 1- Get number of rows, and columns from user. (i.e. row = 3, column = 5) 2- Print a pattern of stars by using row and column numbers. (Hint: in print function you may need to use end = ´ ´ parameter because by default each print function is programmed to go to the next line unless you change the default settings. Remember from first python class) Figure 1: Sample run 1 Question-4 1- Get a number from user. (i.e. number = 10) 2- Draw the pattern as you see in sample run based on the number you receive from the user. Figure 2: Sample run Question-5 1- Get a number from user. (i.e. number = 10) 2- Draw the pattern as you see in sample run based on the number you receive from the user. Figure 3: Sample run 2 Question-6 1- Get a number from user. (i.e. number = 10) 2- Draw the pattern as you see in sample run based on the number you receive from the user. Figure 4: Sample run 3
Dec 08, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here