Question: String input _ key is read from input and integer sum _ counts is initialized with 0 . Write a loop that iterates while input
String inputkey is read from input and integer sumcounts is initialized with Write a loop that iterates while inputkey is not
equal to 'Over'. In each iteration of the loop:
Read integer foodcount from input.
Increase sumcounts by the value of foodcount.
Output the value of inputkey.
Read string inputkey from input.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
