Check out the examples.

Print 'Enter 5 items: ' Loop:i=0 to 4 Enter A[i] Loop-end:i Print 'Search item: ' Enter item found = False Loop:i=0 to 4 If item == A[i] Then Print 'Item: ', item, '\n' Print 'Index: ', i, '\n' found = True EndIf Loop-end:i If !found Then Print 'Not found' EndIf

Online Editor

Write and compile code online!