Question: Perform the following tasks: Read string fav _ flower, and integers char _ index 1 and char _ index 2 from input. Assign char 1

Perform the following tasks:
Read string fav_flower, and integers char_index1 and char_index2 from input.
Assign char1 with the character at index char_index1 of fav_flower.
Assign char2 with the character at index char_index2 of fav_flower.
Click here for example
Ex: If the input is:
verbena
4
6
then the output is:
Flower read: verbena
Selected characters: e, a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!