Untitled
unknown
plain_text
10 months ago
563 B
4
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 eshtene liste" << endl;
} else{
cout << gjej << " eshte elementi i : " << i + 1 << " ne liste " << endl;
}
system("PAUSE");
return EXIT_SUCCESS;
}
Editor is loading...
Leave a Comment