Showing
1 changed file
with
3 additions
and
0 deletions
| 1 | print("This is a echo program") | 1 | print("This is a echo program") |
| 2 | +print("If you enter 'exit', the program will exit") | ||
| 2 | while(True): | 3 | while(True): |
| 3 | a = input() | 4 | a = input() |
| 5 | + if (a == "exit"): | ||
| 6 | + break | ||
| 4 | print(a) | 7 | print(a) |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment