| 16 | #endif |
| 17 | } |
| 18 | int main(){ |
| 19 | initial(); |
| 20 | int arr[]={12,13,14,44,55,66,67,88}; |
| 21 | int key; |
| 22 | cin>>key; |
| 23 | int n= sizeof(arr)/ sizeof(int); |
| 24 | int index= linear(arr,key,n); |
| 25 | if (index!=-1) |
| 26 | { |
| 27 | cout<<key<<" is present at"<<index<<endl; |
| 28 | } |
| 29 | else{ |
| 30 | cout<<key<<" is not present"<<endl; |
| 31 | } |
| 32 | |
| 33 | return 0; |
| 34 | } |