노강호

add exit function

Showing 1 changed file with 3 additions and 0 deletions
1 def main(): 1 def main():
2 + print("Type \"exit\" to exit program")
2 while(1): 3 while(1):
3 inp = input() 4 inp = input()
5 + if(inp == "exit"):
6 + break
4 print(inp) 7 print(inp)
5 8
6 9
......