Scrieti un program Python utilizand instructiunea care imprima toate numerele de la 2 la 18, cu exeptia celor 5,9 si 15
Nota: Utiliziaza continue
Răspunsuri la întrebare
Răspuns:
for i in range(2,19):
if(i!=5) and(i !=9) and (i !=15):
print(i)
continue
print(i)
Explicație:
OnlineGDB beta
online compiler and debugger for c/c++
code. compile. run. debug. share.
IDE
My Projects
Classroom new
Learn Programming
Programming Questions
Sign Up
Login
About • FAQ • Blog • Terms of Use • Contact Us • GDB Tutorial • Credits • Privacy
© 2016 - 2020 GDB Online
Language
main.py
input
2
3
4
6
7
8
10
11
12
13
14
16
17
18
...Program finished with exit code 0