Solve it with C programing Suppose, you are working as a Data Entry Operator in a company. You have created a dataset that contains the names of N employees. Then your supervisor wants you to look for a particular employee by name. (Consider, every name in the data set is unique). Now your task is to write a program which will help you to find out the name which your supervisor is looking for. If found then print a message "Matched" otherwise print "Not Matched". (N.B: Without quotation) The first line of input will take an integer (N) which indicates the number of names in the dataset. Then the second line will take N space-separated strings. The third line of input will take another string as search value. Sample input: 5 rabbe sharif shazzad polash tutul sharif Sample output: Matched Sample input: 4 jahid nishat rasel shakib munna Sample output: Not Matched
#Solve it with C programing
Suppose, you are working as a Data Entry Operator in a company. You have created a dataset that contains the names of N employees. Then your supervisor wants you to look for a particular employee by name. (Consider, every name in the data set is unique).
Now your task is to write a
If found then print a message "Matched" otherwise print "Not Matched". (N.B: Without quotation)
The first line of input will take an integer (N) which indicates the number of names in the dataset.
Then the second line will take N space-separated strings. The third line of input will take another string as search value.
Sample input:
5
rabbe sharif shazzad polash tutul
sharif
Sample output:
Matched
Sample input:
4
jahid nishat rasel shakib
munna
Sample output:
Not Matched
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images