0

Write a program which will print odd numbers between 1 and 100. Use the for loop.

25th Sep 2017, 10:14 AM
Бауыржан
Бауыржан - avatar
4 Antworten
+ 13
for n in range(100): if n%2==1: print(n) https://code.sololearn.com/cQtkS4k1GkYU/?ref=app
25th Sep 2017, 10:18 AM
Nithiwat
Nithiwat - avatar
+ 10
https://code.sololearn.com/cQDkCPwXrcl2/?ref=app
25th Sep 2017, 11:39 AM
Nithiwat
Nithiwat - avatar
+ 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. * *** ***** ******* *********
25th Sep 2017, 10:57 AM
Бауыржан
Бауыржан - avatar
+ 2
thank you so much. You helped me a lot
25th Sep 2017, 11:44 AM
Бауыржан
Бауыржан - avatar