0

Quiz 1

Can you guys help me write the coding of this question? Journey Bibi wants to learn about programming. So, she will go to Jojo's house to borrow a book about programming. But Jojo's house is very far from her home, so she will need to borrow a scooter from Lili's house, who is her neighbor. She will also return the scooter to Lili. Given the block number of Bibi, Lili and Jojo's house, output the order of Bibi's journey Format Input Input consist of exactly 3 integers, which denotes the block number of Bibi, Lili and Jojo house respectively Format Output 5 integer which is the block number of the house she visits in order Constraints The block number of Bibi, Lili, and Jojo house always between 1 and 100 inclusive. The block numbers will be unique Sample Input 1 2 3 Sample Output 1 2 3 2 1 Note Bibi starts at her house (1) then proceeds to Lili's house (2). After that she goes to Jojo's house (3) to get the book, then to Lili's house (2) to return the scooter, then walks back to her house (1) This problem can be done with simple inputloutput, there is no need of looping (for, while, do-while).

2nd Oct 2018, 7:06 PM
Yohan Bastian
Yohan Bastian - avatar
1 Antwort
0
thank you
3rd Oct 2018, 3:39 AM
Yohan Bastian
Yohan Bastian - avatar