Rewrite the following code of program using the for loop in python: a=int(input("Enter a number"))
i=a
while i>=0:
print(a*i)
i=i-2
Share
Rewrite the following code of program using the for loop in python: a=int(input("Enter a number"))
i=a
while i>=0:
print(a*i)
i=i-2
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
0 Replies