# include <iostream>
using namespace std;
void bubblesort (int A[], int size)
{
int y,T,i;
for (int T=1; T<size-1; T++)
{
for (int i=0; T<size-T; i++)
{
if (A[i]< A[i+1])
{
y=A[i];
A[i]=A[i+1];
A[i+1]=y ;
}
}
}
int seqsearchordlist(int A[], int size, int key)
{
for (int i=0; i<size ; i++)
if (A[i]==key) return i;
return -1;
}
int main(){
int A[30];
int size;
int key;
A[3,6,9,4,2];
bubblesort(A,size);
seqsearchordlist(A,size,key);
cout<<"enter key"<<endl;
cin>>key;
}
return 0 ;
عدلو لي ايااه والله تمللت