/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{
srand(time(NULL));
int tab[5][2],iloczyn=1;
for(int k=0;k<2;k++)
{
for(int w=0;w<5;w++)
{
tab[w][k]=rand()%28-7;
cout<<tab[w][k]<<" ";
if(tab[w][k]%7!=0)
{
iloczyn*=tab[w][k];
}
}
cout<<endl;
}
cout<<"Iloczyn: "<<iloczyn<<endl;
for(int k=0;k<2;k++)
{
for(int w=0;w<5;w++)
{
if(tab[w][k]>4)
{
cout<<tab[w][k]<<" jest wieksza od 4"<<endl;
break;
}
}
cout<<endl;
}
}