solve the following programs:
WAP to print last 10 three digits odd numbers.
Wap to accept speed and time for 20 different cabs, findout their distances.
Wap to print all even numbers between a given range.
Wap to print the series 1, X, X^2, X^3... Nth terms
please solve this for me
Answers
Answered by
8
Input: start = 4, end = 15
Output: 5, 7, 9, 11, 13, 15
Input: start = 3, end = 11
Output: 3, 5, 7, 9, 11
# Python program to print odd Numbers in given range
start, end = 4, 19
# iterating each number in list
for num in range(start, end + 1):
# checking condition
if num % 2 != 0:
print(num, end = " ")
Answered by
5
Answer:
Your Q answer in the attachment ⤴️
Attachments:
Similar questions