Question: A fruit is read from input into fruit _ input. String favorite _ fruits is output, followed by fruit _ input. Modify the string literal
A fruit is read from input into fruitinput. String favoritefruits is output, followed by fruitinput. Modify the string literal assigned to favoritefruits by adding newline characters
so that each fruit in favoritefruits is separated by a newline instead of a space, and favoritefruits ends with a newline.
Ex: If the input is grapes, then the output is:
peaches
raspberries
lemons
blackberries
grapes A fruit is read from input into fruitinput. String favoritefruits is output, followed by fruitinput. Modify the string literal assigned to favoritefruits by adding newline characters mathrmn so that each fruit in favoritefruits is separated by a newline instead of a space, and favoritefruits ends with a newline.
Ex: If the input is grapes, then the output is:
peaches
raspberries
lemons
blackberries
grapes
fruitinput input
# Modify the string Literal below
favoritefruits
printfavoritefruits, 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
