Question: A fruit is read from input into fruit _ input. String shopping _ list is output, followed by fruit _ input. Modify shopping _ list
A fruit is read from input into fruitinput. String shoppinglist is output, followed by fruitinput. Modify shoppinglist so that each fruit in shoppinglist is separated by a newline and shoppinglist ends with a newline.
Ex: If the input is avocados, then the output is:
grapes
pears
blueberries
peaches
avocados
fruitinput input
shoppinglist grapes pears blueberries peaches'
printshoppinglist, end
printfruitinput
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
