Untitled
#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 te 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 element i : " << i + 1 << " ne liste" << endl" } system("PAUSE"); return EXIT_SUCCESS; }
Leave a Comment