SHARE
TWEET

Untitled

a guest Jan 21st, 2020 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int vettore[N] = {0};
  2.     for(int i = 0; i < N; i++) {
  3.         cout << "Inserisci un numero: ";
  4.         cin >> vettore[i];
  5.     }
  6.     cout << "Stampo i numeri pari: \n";
  7.     for(int i = 0; i < N; i++) {
  8.         if(vettore[i] % 2 == 0) cout << vettore[i];
  9.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top