Challenge: File Based Calculator
メニューを表示するにはスワイプしてください
You can download the required folder for this task. The folder includes two files called 1.txt and 2.txt.
After the user specifies an operation, the program should read the numbers from 1.txt and 2.txt and apply the operation on each corresponding number from the 1.txt and 2.txt files. The results should be stored in the corresponding lines of a new file called result.txt.
For example, if the user enters the operator +, the numbers in the first lines of 1.txt and 2.txt will be added (925 + 789 = 1714), and the result will be stored in the first line of a new file called result.txt. The same should happen for the remaining lines.
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 9
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください
セクション 1. 章 9