Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int i,j,k,row=3,column=4,a[100][100],b[100],count=0;
- for(i=0;i<row;i++)
- {
- for(j=0;j<column;j++)
- cin>>a[i][j];
- b[count]=a[i][--j];
- count++;
- }
- cout<<"\n";
- for(i=0;i<row;i++)
- {
- for(j=0;j<column-1;j++)
- cout<<a[i][j]<<" ";
- cout<<"\n";
- }
- for(i=0;i<count;i++)
- {
- cout<<b[i]<<" ";
- }
- getchar();
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement