Skip to content

Instantly share code, notes, and snippets.

@invatainfo
Created February 15, 2020 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save invatainfo/288283195b7983d37a371d58260252be to your computer and use it in GitHub Desktop.
Save invatainfo/288283195b7983d37a371d58260252be to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main() {
int i, a[5][7];
/*
* inainte de secventa ceruta se poate citi matricea
* in acest moment, fara alte instructiuni,
* matricea contine elemente fara sens
*/
// secventa de instructiuni ceruta
for (i = 0; i < 5; i++)
if (a[i][0] == 2020 || a[i][6] == 2020)
cout << i << " ";
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment