Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void pokaz(int t[],int n=6)
- {
- for(int i=0;i<n;i++)
- {
- cout<<t[i];
- }
- }
- float pokaz(float tab[], float k)
- {
- for(int i=0;i<k;i++)
- {
- cout<<tab[i];
- }
- }
- float pokaz(float tab1[3][4])
- {
- for(int j=0;j<3;j++)
- {
- for(int b=0;b<4;b++)
- {
- cout<<tab1[j][b];
- }cout<<endl;
- }
- }
- float pokaz(int m, int p, int** tab2)
- {
- for(int c=0;c<p;c++)
- {
- for(int d=0;d<m;d++)
- {
- cout<<tab2[c][d];
- }cout<<endl;
- }
- }
- main()
- {
- int t[6]={0,1,2,3,4,5};
- int n=6, k;
- cin>>k;
- float *tab=new float[k];
- for(int i=0;i<k;i++)
- {
- cin>>tab[i];
- }
- float tab1[3][4];
- for(int j=0;j<3;j++)
- {
- for(int b=0;b<4;b++)
- {
- tab1[j][b]=j*b;
- }
- }cout<<endl;
- int p=1,m=1;
- cout<<endl;
- cin>>p>>m;
- int **tab2=new int *[m];
- for(int c=0;c<p;c++)
- {
- tab2[c]=new int
- [p];
- for(int d=0;d<m;d++)
- {
- cin>>tab2[c][d];
- }cout<<endl;
- }
- cout<<" ";
- pokaz(t,n);
- cout<<endl;
- pokaz(tab,k);
- cout<<endl;
- pokaz(tab1);
- cout<<endl;
- pokaz(p,m,tab2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement