Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <cstdio>
- #include <ctime>
- using namespace std;
- int main ()
- {
- int tab2[3][4];
- int i,j;
- int najwiekszaliczba=tab2[0][0];
- srand(time(NULL));
- for(i=0;i<3;i++)
- {
- for(j=0;j<4;j++)
- {
- tab2[i][j]=rand()% 50+10 ;
- if(najwiekszaliczba>tab2[i][j])
- {
- najwiekszaliczba=tab2[i][j];
- }
- }
- }
- for (i=0;i<3;i++)
- {
- cout<<endl;
- for(j=0;j<4;j++)
- {
- cout<<tab2[i][j]<<"\t";
- }
- }
- {
- cout << ""<<endl<<endl;
- cout<<najwiekszaliczba<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement