Maria is the sister of Ana. Ana knows her sister is in the bus terminal. She wants to find out Maria boarded on the bus or not? Ana knows Maria's ticket number and the bus company provide the ticket numbers of passengers who have boarded. Write a C program to help Ana to find if Maria boarded on the bus or not. Constraints: 1 <= N <= 100 100 <= TN <= 1000 Input Format: First line: N is the number of elements in the list provided by the bus company. Second line: The tickets list provided by the bus company. Third line: Maria's ticket Number. Output: either boarded or notboarded. Sample input: 4 589 456 789 123 123 Sample output: boarded NOTE: Your input and output datatype need to be exactly same as the given sample input & output. Else it will not pass through all private test cases.
Maria is the sister of Ana. Ana knows her sister is in the bus terminal. She wants to find out Maria boarded on the bus or not? Ana knows Maria's ticket number and the bus company provide the ticket numbers of passengers who have boarded. Write a C program to help Ana to find if Maria boarded on the bus or not.
Constraints:
1 <= N <= 100
100 <= TN <= 1000
Input Format:
First line: N is the number of elements in the list provided by the bus company.
Second line: The tickets list provided by the bus company.
Third line: Maria's ticket Number.
Output:
either boarded or notboarded.
Sample input:
4
589 456 789 123
123
Sample output:
boarded
NOTE: Your input and output datatype need to be exactly same as the given sample input & output. Else it will not pass through all private test cases.
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)