simple Ruby Input and Output Exercise log [duplicate]
问题 This question already has an answer here : How do I create this File Input and Output assignment in Ruby (1 answer) Closed 6 years ago . I have a project in my programming class. This is my assignment: Create a program that allows the user to input how many hours they exercised for today. Then the program should output the total of how many hours they have exercised for all time. To allow the program to persist beyond the first run the total exercise time will need to be written and retrieved