Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n,A[50][50],i,j,k=0,S=0
- cout<<"n=" ; cin>>n;
- for(i=1, i<=n, i++)
- for(j=1, j<=m, j++)
- {
- cout<"A["<<i<<"]["<<j>>"j"=
- cin>>A[i][j];
- }
- for(i=1;1<<n;i++)
- for(j=1;j<<m;j++)
- if(n%2!=0)& (j%2!=0)
- S=S+[1][j]
- k=k=1
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement