Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #include <string.h>
- using namespace std;
- int main()
- {
- int n,m,broj;
- int i,j;
- scanf("%d%d%d",&n,&m,&broj);
- int matrica[n][m];
- for(i = 0 ; i < n ; ++i)
- for(j = 0 ; j < m ; ++j)
- matrica[i][j] = broj + i + j;
- for(i = 0 ; i < n ; ++i)
- {
- for(j = 0 ; j < m ; ++j)
- printf("%d ",matrica[i][j]);
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement