Code: Select all
I won.
The ending condition is for sure:
fgets(line, some number, stdin);
if (line[0] == 'Z' && strlen(line) == 2) stop processing
Code: Select all
I won.
The ending condition is for sure:
fgets(line, some number, stdin);
if (line[0] == 'Z' && strlen(line) == 2) stop processing
Code: Select all
#!/usr/bin/python3
def main():
*code*
if __name__ == "__main__":
main()
Code: Select all
thanks brianfry