Write a program to get an array of Strings from the user and then accept a string to find in the array. The program should print ‘Found’ if the value is present in the array else print ‘Not Found’.
Enter the number of elements in the String:
5
Enter a String:
abc
Enter a String:
def
Enter a String:
xyz
Enter a String:
123
Enter a String:
Pqr
Comments
Leave a comment