Untitled

 avatar
unknown
plain_text
a month ago
454 B
2
Indexable
#include <cstdlib>
#include <iostream>
using namespace std;


int main(int argc, char *argv[]) {
int numra[] = {11, 22, 33, 44, 55, 66, 77, 88};
int gjej;
int i, m = 8;

cout<<"Jep numrin qe do kerkosh:";
cin>>gjej;

for(i=0;(i<m) && (numra[i] != gjej); ++i){
    continue;
}
if (i == m){
    cout<<gjej<<" nuk eshte ne liste"<<endl;
}
else{
    cout<<gjej<<"Eshte elementi i :"<<i+1<<"ne liste"<<endl;
}
    system("PAUSE");


    return EXIT_SUCCESS;
}
Leave a Comment