CS201 MID TERM SOLVED MCQs || PAST PAPERS || GROUP-1 || INTRODUCTION TO PROGRAMMING || VuTech Visit Website For More Solutions www.vutechofficial.blogspot.com …
CS441 ASSIGNMENT NO. 1 SPRING 2023 || 100% RIGHT SOLUTION || BIG DATA CONCEPTS || BY VuTech
Visit Website For More Solutions www.vutechofficial.blogspot.com
KINDLY, DON’T COPY PASTE
QUESTION-1
You are required to write a program in python for creating a table using while loop. The program will take a number as input from the user and print table of the number as an output.
SOLUTION:
number = int(input("Enter a number: "))
print("Table of", number, ":")
counter = 1
while counter <= 10:
result = number * counter
print(number, "x", counter, "=", result)
counter += 1
QUESTION-2
You are required to write a program using range function in python which print the numbers in descending order, decremented by 2 starting from 100 e.g. 100, 98, 96, 94 ……...
SOLUTION:
for num in range(100, -1, -2):
print(num, end=" ")
KINDLY, DON’T COPY PASTE SUBSCRIBE, SHARE, LIKE AND COMMENTS FOR MORE UPDATES SEND WHATSAPP OR E-MAIL FOR ANY QUERY 0325-6644800 kamranhameedvu@gmail.com Visit Website For More Solutions www.vutechofficial.blogspot.com
We provide Virtual University of Pakistan Study Materials such as Solution of Assignments, GDBs, Mid Term Solved Papers, Final Term Solved Papers, Mid Term Solved MCQs, and Final Term Solved MCQs. We also provide regular Semester Quizzes, Updated Handouts, and Short Questions and Answers. We help you with your research and many other educational-related topics, as far as we know. Furthermore, Share your problem with us and Please feel free to ask any related questions.