program of linear search???
QGP:
Which Programming Language do you want it in?
Answers
Answered by
1
_______________________________
hey here is your answer...
I have given two pic...pls refer it
Attachments:
Answered by
1
Answer:
In python:
Explanation:
let, ele=element u r searching
//used for comment
def linear_search(list,ele):
for i in list:
if i==ele:
return ele
else:
return -1//if ele not found
list=input().split()
ele=eval(input())
print(linear_search(list,ele))
yrr mark it as brainliest ,sacchi me poora program likha h....!
Similar questions