0
Write a program which will print odd numbers between 1 and 100. Use the for loop.
4 Antworten
+ 13
for n in range(100):
if n%2==1:
print(n)
https://code.sololearn.com/cQtkS4k1GkYU/?ref=app
+ 10
https://code.sololearn.com/cQDkCPwXrcl2/?ref=app
+ 2
thank you. And will not help with this? write a program which will print a triangle of variable height with the for loop, as given in example below. The height should be entered by the user and be an integer number between 3 and 15.
*
***
*****
*******
*********
+ 2
thank you so much. You helped me a lot