Ask
your own question, for FREE!
Computer Science
12 Online
What can be useful to use a loop while summing numbers from any file? Here is an example: Which file would you like to read numbers from: 5nums.txt Reading numbers from "5nums.txt" 1 2 3 4 5 Total is 15 and Which file would you like to read numbers from: 8nums.txt Reading numbers from "8nums.txt" 3 1 4 1 5 9 2 6 Total is 31 How do I use a loop in this from any file to sum up numbers?
Still Need Help?
Join the QuestionCove community and study together with friends!
Here is my code to this.
you should copy and paste your code in here, formatted like ``` this ``` with 3 ` above and below the code.
How do you do that>
You copy this: ``` then paste those 3 characters on the line above your code, and paste them on the line below your code. By the way, it's the key that's left of the 1 key.
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
yogirllmillii:
Waiting. I donu2019t even know what Iu2019m waiting for anymore, Youu2019re not coming back.
EdwinJsHispanic:
Love is crap I'm scared of losing you I'm slowly turning blue. Just talking about "blue" Reminds me of you.
JA1CE:
everyone go stream my spotify lmk if its buns or good (reckless is my recommendation) https://open.
KBaby:
Verse 1 Under the same roof, we learned to grow, with dreams in our hands and reasons to believe.
Demon25:
in a foreign car going so fast and im so high probaly wont last if she mess with
EdwinJsHispanic:
I trusted you I loved you yet somehow it wasn't close to being enough so you decided to leave me when it was tough.
43 minutes ago
2 Replies
0 Medals
3 minutes ago
7 Replies
0 Medals
19 hours ago
0 Replies
0 Medals
1 day ago
2 Replies
0 Medals
22 hours ago
6 Replies
1 Medal
1 day ago
16 Replies
2 Medals