Question: 3 . 1 . 2 : String basics. 5 7 8 7 5 8 . 4 2 5 8 8 7 2 . q 3

3.1.2: String basics.
578758.4258872.q3zqy7
Jump to level 1
Perform the following tasks:
Read string fav_fruit, and integers char_index1 and char_index2 from input.
Assign char1 with the character at index char_index1 of fav_fruit.
Assign char2 with the character at index char_index2 of fav_fruit.
Click here for example
Ex: If the input is:
jujube
2
3
then the output is:
Fruit chosen: jujube
Selected characters: j, u
Note: Assume char_index1 and char_index2 are greater than 0 and less than the length of fav_fruit.
 3.1.2: String basics. 578758.4258872.q3zqy7 Jump to level 1 Perform the following

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!