Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a[100][100];
- unsigned long s=0,nr,n,m,i,j;
- cout<<"n=";cin>>n;
- cout<<"m=";cin>>m;
- for (i=0;i<n;i++)
- for (j=0;j<m;j++)
- cin>>a[i][j];
- for (i=0;i<n;i++) {
- nr=0;
- for (j=0;j<m;j++)
- nr=nr*10+a[i][j];
- s+=nr;
- }
- cout<<s;
- return 0;//
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement